diff options
author | Will Fisher <wfisher@chef.io> | 2019-09-11 08:11:42 -0700 |
---|---|---|
committer | Will Fisher <wfisher@chef.io> | 2019-09-11 08:11:42 -0700 |
commit | 952af6de51dafb40759393842ba129bc3f661049 (patch) | |
tree | 31f5aff1fb5853af8f346b562123915f8a551976 | |
parent | 4919fe85ab22e4d45c3f172a4c6cec83eee80f48 (diff) | |
download | chef-952af6de51dafb40759393842ba129bc3f661049.tar.gz |
Fix typo when checking for existing chef-client
The knife bootstrap is always installing chef-client due to a typo in
the test that checks for the existance of the executable.
Signed-off-by: Will Fisher <wfisher@chef.io>
-rw-r--r-- | lib/chef/knife/bootstrap/templates/chef-full.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap/templates/chef-full.erb b/lib/chef/knife/bootstrap/templates/chef-full.erb index f70a94ea55..9da9886cb7 100644 --- a/lib/chef/knife/bootstrap/templates/chef-full.erb +++ b/lib/chef/knife/bootstrap/templates/chef-full.erb @@ -173,7 +173,7 @@ do_download() { <%= knife_config[:bootstrap_install_command] %> <% else %> install_sh="<%= knife_config[:bootstrap_url] ? knife_config[:bootstrap_url] : "https://omnitruck.chef.io/chef/install.sh" %>" - if test -f /usr/bin/<%= Chef::Dist::CLIENT %>}; then + if test -f /usr/bin/<%= Chef::Dist::CLIENT %>; then echo "-----> Existing <%= Chef::Dist::PRODUCT %> installation detected" else echo "-----> Installing Chef Omnibus (<%= @config[:channel] %>/<%= version_to_install %>)" |