diff --git a/plugins/provisioners/puppet/provisioner/puppet.rb b/plugins/provisioners/puppet/provisioner/puppet.rb index 93f08425e..fe00f3f47 100644 --- a/plugins/provisioners/puppet/provisioner/puppet.rb +++ b/plugins/provisioners/puppet/provisioner/puppet.rb @@ -149,7 +149,7 @@ module VagrantPlugins command = "#{facter}puppet apply #{options}" if config.working_directory if windows? - command = "cd #{config.working_directory}; if ($?) \{ #{command} \}" + command = "cd #{config.working_directory}; if (`$?) \{ #{command} \}" else command = "cd #{config.working_directory} && #{command}" end