summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Fisher <wfisher@chef.io>2019-09-11 08:11:42 -0700
committerWill Fisher <wfisher@chef.io>2019-09-11 08:11:42 -0700
commit952af6de51dafb40759393842ba129bc3f661049 (patch)
tree31f5aff1fb5853af8f346b562123915f8a551976
parent4919fe85ab22e4d45c3f172a4c6cec83eee80f48 (diff)
downloadchef-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.erb2
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 %>)"