diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-20 11:02:09 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-20 11:02:09 -0700 |
commit | ec2f1c1295890617fd83c6117e1f6ec64c0e20e5 (patch) | |
tree | daf7b248d484fcca56ee7522baa55d59fadc0471 | |
parent | 15fd4764bd69bf42d0275da1c21ac0a9a3823289 (diff) | |
download | chef-ec2f1c1295890617fd83c6117e1f6ec64c0e20e5.tar.gz |
Add comment
Signed-off-by: Tim Smith <tsmith@chef.io>
-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 |