Skip to content

Commit 9436743

Browse files
authored
Merge pull request #8866 from joshcooper/unless_exec_docs
(docs) lib/puppet/type/exec.rb `unless` `grep(1)` anchors
2 parents 5bbd883 + 2990e9c commit 9436743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def check(value)
457457
458458
exec { '/bin/echo root >> /usr/lib/cron/cron.allow':
459459
path => '/usr/bin:/usr/sbin:/bin',
460-
unless => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
460+
unless => 'grep ^root$ /usr/lib/cron/cron.allow 2>/dev/null',
461461
}
462462
463463
This would add `root` to the cron.allow file (on Solaris) unless

0 commit comments

Comments
 (0)