On Wed, 25 Apr 2012 10:29:23 -0700 (PDT)
That's because [ is usually in /usr/bin, not /bin :
$ which [
so path => [ '/bin', '/usr/bin' ] would probably have worked.
> As suggested by Florian using 'provider => shell' takes care of PATH
> and shell built-ins as well.
That's probably just as good a solution.
On an unrelated note, something like the following might be more what
you're trying to achieve, since you have a somewhat reversed logic and
aren't checking for the directory's existence at all (untested) :
onlyif => "[ -d $one_location -a -z \"$(ls -A $one_location)\" ]"