diff options
-rw-r--r-- | lib/chef/resource/build_essential.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb index c0b7483ffb..2382f2a1e4 100644 --- a/lib/chef/resource/build_essential.rb +++ b/lib/chef/resource/build_essential.rb @@ -122,10 +122,7 @@ class Chef def xcode_cli_installed? cmd = Mixlib::ShellOut.new("pkgutil --pkgs=com.apple.pkg.CLTools_Executables") cmd.run_command - cmd.error! - true - rescue Mixlib::ShellOut::ShellCommandFailed - false + cmd.error? ? false : true end end |