From 621369ebba205a5097f1753c18753cb015cb7475 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 12 Mar 2014 19:49:45 -0700 Subject: [PATCH] core: Execute PowerShell scripts even with spaces in dir [GH-3100] --- CHANGELOG.md | 2 ++ lib/vagrant/util/powershell.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96bbc3ec7..025d1ad12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ BUG FIXES: - core: Asking for input works even in consoles that don't support hiding input. [GH-3119] - core: Adding a box by path in Cygwin on Windos works. [GH-3132] + - core: PowerShell scripts work when they're in a directory with + spaces. [GH-3100] - guests/darwin: Fix an exception when configuring networks. [GH-3143] - hosts/linux: Unusual sed delimiter to avoid conflicts. [GH-3167] - providers/virtualbox: Make more internal interactions with VBoxManage diff --git a/lib/vagrant/util/powershell.rb b/lib/vagrant/util/powershell.rb index 3e2206c3e..e092cdde9 100644 --- a/lib/vagrant/util/powershell.rb +++ b/lib/vagrant/util/powershell.rb @@ -21,7 +21,7 @@ module Vagrant "powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", - path, + "'#{path}'", args ].flatten