From 952af6de51dafb40759393842ba129bc3f661049 Mon Sep 17 00:00:00 2001 From: Will Fisher Date: Wed, 11 Sep 2019 08:11:42 -0700 Subject: 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 --- lib/chef/knife/bootstrap/templates/chef-full.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 %>)" -- cgit v1.2.1