Do shell expansion before doing the file test in Vagrant::Downloaders::File#prepare so that "~/file/paths" work.
This commit is contained in:
parent
06d4b6a4e5
commit
9a242ba718
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue