Fix issue 6762
Fixes error "The term '$?' is not recognized as the name of a cmdlet, function, script"
This commit is contained in:
parent
d1d493c323
commit
e1a0b01e27
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue