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 '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
|
||||||
|
|
Loading…
Reference in New Issue