summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-03-30 18:55:25 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-31 10:51:50 -0700
commit2662fcbaaa6b3aa68ee54dfcf42c3255c47703d8 (patch)
tree872307dfbf83a23381de5b505f28cfb09bef88a6
parent94776cbe7461b0d309a747eef1d45d8a1963b562 (diff)
downloadchef-2662fcbaaa6b3aa68ee54dfcf42c3255c47703d8.tar.gz
Update lib/chef/resource/build_essential.rb
Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/resource/build_essential.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb
index 87b21fb8b7..d71f6d86eb 100644
--- a/lib/chef/resource/build_essential.rb
+++ b/lib/chef/resource/build_essential.rb
@@ -118,8 +118,8 @@ class Chef
if macos?
pkg_label = xcode_cli_package_label
- # with upgrade action we should install if it's not install or if there's an available update to install
- # xcode_cli_package_label will be nil if there's not update
+ # With upgrade action we should install if it's not installed or if there's an available update.
+ # `xcode_cli_package_label` will be nil if there's no update.
install_xcode_cli_tools(pkg_label) if !xcode_cli_installed? || xcode_cli_package_label
else
Chef::Log.info "The build_essential resource :upgrade action is only supported on macOS systems. Skipping..."