Merge pull request #4059 from brettporter/windows-puppet-wd

Unable to use puppet.working_directory on Windows
This commit is contained in:
Shawn Neal 2014-06-18 07:56:49 -07:00
commit 1e28f1ac31
1 changed files with 1 additions and 1 deletions

View File

@ -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