Do shell expansion before doing the file test in Vagrant::Downloaders::File#prepare so that "~/file/paths" work.

This commit is contained in:
Brad Greenlee 2012-01-11 16:56:05 -08:00 committed by Mitchell Hashimoto
parent 06d4b6a4e5
commit 9a242ba718
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module Vagrant
end
def prepare(source_url)
raise Errors::DownloaderFileDoesntExist if !::File.file?(source_url)
raise Errors::DownloaderFileDoesntExist if !::File.file?(::File.expand_path(source_url))
end
def download!(source_url, destination_file)