From 4eec8c4bf34911db7a259ab818ec307c0863f9e7 Mon Sep 17 00:00:00 2001 From: Hippie Hacker Date: Mon, 1 Feb 2016 10:13:42 -0500 Subject: [PATCH] Remove -c from sh /tmp/install-chef.sh --- lib/chef/provisioning/convergence_strategy/install_sh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/provisioning/convergence_strategy/install_sh.rb b/lib/chef/provisioning/convergence_strategy/install_sh.rb index fcfef20c..bbe585ec 100644 --- a/lib/chef/provisioning/convergence_strategy/install_sh.rb +++ b/lib/chef/provisioning/convergence_strategy/install_sh.rb @@ -44,7 +44,7 @@ def setup_convergence(action_handler, machine) install_command = Mixlib::Install.new(chef_version, false, opts).install_command machine.write_file(action_handler, install_sh_path, install_command, :ensure_dir => true) machine.set_attributes(action_handler, install_sh_path, :mode => '0755') - machine.execute(action_handler, "sh -c #{install_sh_path}") + machine.execute(action_handler, "sh #{install_sh_path}") end def converge(action_handler, machine)