Fix issue 6762

Fixes error "The term '$?' is not recognized as the name of a cmdlet, function, script"
This commit is contained in:
Shawn Neal 2016-01-06 13:37:28 -08:00
parent d1d493c323
commit e1a0b01e27
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ module VagrantPlugins
command = "#{facter} #{puppet_bin} 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