Merge pull request #8498 from chrisroberts/win/spaces

Quote exec_path to properly handle spaces in path
This commit is contained in:
Chris Roberts 2017-04-20 16:08:24 -07:00 committed by GitHub
commit 0e89fdf182
1 changed files with 1 additions and 1 deletions

View File

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