core: Windows paths work for box add [GH-3132]

This commit is contained in:
Mitchell Hashimoto 2014-03-11 11:27:35 -07:00
parent 8624e2cbf2
commit 5863ffdf7b
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Vagrant
# Expand the path and try to use that, if possible # Expand the path and try to use that, if possible
p = File.expand_path(u.gsub(/^file:\/\//, "")) p = File.expand_path(u.gsub(/^file:\/\//, ""))
p = Util::Platform.cygwin_windows_path(p) p = Util::Platform.cygwin_windows_path(p)
next "file://#{p}" if File.file?(p) next "file://#{p.gsub("\\", "/")}" if File.file?(p)
u u
end end