Merge pull request #3318 from ecoleman/patch-1
core: properly escape path in cygwin bash check
This commit is contained in:
commit
7d0cbcb686
|
@ -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