Properly escape path in cygwin bash check

Quick attempt at properly fixing #3304
This commit is contained in:
Eric Coleman 2014-03-25 18:36:05 -04:00
parent f7adeadf8d
commit f32a865abd
1 changed files with 2 additions and 1 deletions

View File

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