core: dont' load rc or profile when getting a cygpath with bash

This commit is contained in:
Mitchell Hashimoto 2014-01-15 21:15:17 -08:00
parent 73b72deb0a
commit 5bddd6c366
1 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,11 @@ module Vagrant
rescue Errors::CommandUnavailableWindows rescue Errors::CommandUnavailableWindows
# Sometimes cygpath isn't available (msys). Instead, do what we # Sometimes cygpath isn't available (msys). Instead, do what we
# can with bash tricks. # can with bash tricks.
process = Subprocess.execute("bash", "-c", "cd #{path} && pwd") process = Subprocess.execute(
"bash",
"--noprofile",
"--norc",
"-c", "cd #{path} && pwd")
return process.stdout.chomp return process.stdout.chomp
end end
end end