core: Windows paths work for box add [GH-3132]
This commit is contained in:
parent
8624e2cbf2
commit
5863ffdf7b
|
@ -41,7 +41,7 @@ module Vagrant
|
|||
# Expand the path and try to use that, if possible
|
||||
p = File.expand_path(u.gsub(/^file:\/\//, ""))
|
||||
p = Util::Platform.cygwin_windows_path(p)
|
||||
next "file://#{p}" if File.file?(p)
|
||||
next "file://#{p.gsub("\\", "/")}" if File.file?(p)
|
||||
|
||||
u
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue