Properly escape path in cygwin bash check
Quick attempt at properly fixing #3304
This commit is contained in:
parent
f7adeadf8d
commit
f32a865abd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue