Merge pull request #3318 from ecoleman/patch-1

core: properly escape path in cygwin bash check
This commit is contained in:
Mitchell Hashimoto 2014-04-01 22:02:29 -07:00
commit 7d0cbcb686
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
require 'rbconfig' require 'rbconfig'
require 'shellwords'
require 'tmpdir' require 'tmpdir'
require "vagrant/util/subprocess" require "vagrant/util/subprocess"
@ -67,7 +68,7 @@ module Vagrant
"bash", "bash",
"--noprofile", "--noprofile",
"--norc", "--norc",
"-c", "cd #{path} && pwd") "-c", "cd #{Shellwords.escape(path)} && pwd")
return process.stdout.chomp return process.stdout.chomp
end end
end end