Expand the file URL when adding a box

This commit is contained in:
Mitchell Hashimoto 2013-04-05 21:27:00 -07:00
parent d7990721a0
commit 17a312b293
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}