From 17a312b29393b2ee3ddc42bec4a2c622326a007b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 5 Apr 2013 21:27:00 -0700 Subject: [PATCH] Expand the file URL when adding a box --- lib/vagrant/action/builtin/box_add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 23ff4b83b..9003baa22 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -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 = {}