diff options
author | John Keiser <john@johnkeiser.com> | 2015-09-25 22:14:34 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-28 17:34:55 -0700 |
commit | b8cffc2e35c662585acff290b27f072c60105479 (patch) | |
tree | 5ad0dec08499bf48c9b29e3122d9b96587c75ec7 /lib/chef/mixin | |
parent | 68656820438b84d433ae9015b953790f67ddf0ec (diff) | |
download | chef-b8cffc2e35c662585acff290b27f072c60105479.tar.gz |
Add test for nonzero systemctl exit code
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/which.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/which.rb b/lib/chef/mixin/which.rb index 4179c97b62..4e1c516386 100644 --- a/lib/chef/mixin/which.rb +++ b/lib/chef/mixin/which.rb @@ -28,7 +28,7 @@ class Chef paths = ENV['PATH'].split(File::PATH_SEPARATOR) + extra_path paths.each do |path| filename = File.join(path, cmd) - return filename if File.executable?(filename) + return filename if File.executable?(Chef.path_to(filename)) end false end |