Merge pull request #8498 from chrisroberts/win/spaces
Quote exec_path to properly handle spaces in path
This commit is contained in:
commit
0e89fdf182
|
@ -190,7 +190,7 @@ module VagrantPlugins
|
||||||
# CLIXML output is kinda useless, especially on non-windows hosts
|
# CLIXML output is kinda useless, especially on non-windows hosts
|
||||||
shell_args += " -OutputFormat Text" if config.powershell_args !~ /[-\/]OutputFormat/i
|
shell_args += " -OutputFormat Text" if config.powershell_args !~ /[-\/]OutputFormat/i
|
||||||
|
|
||||||
command = "#{exec_path}#{args}"
|
command = "\"#{exec_path}\"#{args}"
|
||||||
command = "powershell #{shell_args.to_s} -file #{command}" if
|
command = "powershell #{shell_args.to_s} -file #{command}" if
|
||||||
File.extname(exec_path).downcase == '.ps1'
|
File.extname(exec_path).downcase == '.ps1'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue