Merge pull request #6816 from mitchellh/issue-6762

Fix issue 6762
This commit is contained in:
Shawn Neal 2016-01-06 17:24:44 -05:00
commit 13dfc9dfb7
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ module VagrantPlugins
command = "#{facter} #{puppet_bin} apply #{options}" command = "#{facter} #{puppet_bin} apply #{options}"
if config.working_directory if config.working_directory
if windows? if windows?
command = "cd #{config.working_directory}; if (`$?) \{ #{command} \}" command = "cd #{config.working_directory}; if ($?) \{ #{command} \}"
else else
command = "cd #{config.working_directory} && #{command}" command = "cd #{config.working_directory} && #{command}"
end end