Expand file paths when adding boxes in Cygwin
This commit is contained in:
parent
421e16fefa
commit
162239d2cd
|
@ -21,7 +21,9 @@ module Vagrant
|
|||
url = env[:box_url]
|
||||
if url !~ /^[a-z0-9]+:.*$/i
|
||||
@logger.info("No protocol found on box URL, assuming file:")
|
||||
url = "file:#{File.expand_path(url)}"
|
||||
file_path = File.expand_path(url)
|
||||
file_path = Util::Platform.cygwin_windows_path(file_path)
|
||||
url = "file:#{file_path}"
|
||||
end
|
||||
|
||||
downloader_options = {}
|
||||
|
|
Loading…
Reference in New Issue