mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Merge pull request #8498 from chrisroberts/win/spaces
Quote exec_path to properly handle spaces in path
This commit is contained in:
commit
0e89fdf182
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ module VagrantPlugins
|
|||
# CLIXML output is kinda useless, especially on non-windows hosts
|
||||
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
|
||||
File.extname(exec_path).downcase == '.ps1'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue