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