diff options
Diffstat (limited to 'lib/chef/resource/build_essential.rb')
-rw-r--r-- | lib/chef/resource/build_essential.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb index 2382f2a1e4..05303d8fce 100644 --- a/lib/chef/resource/build_essential.rb +++ b/lib/chef/resource/build_essential.rb @@ -122,6 +122,7 @@ class Chef def xcode_cli_installed? cmd = Mixlib::ShellOut.new("pkgutil --pkgs=com.apple.pkg.CLTools_Executables") cmd.run_command + # pkgutil returns an error if the package isn't found aka not installed cmd.error? ? false : true end end |