Make sure download directory exists.

This commit is contained in:
Markus Reiter 2018-08-01 05:39:28 +02:00
parent 9ffc7dd465
commit 85a6d81e2a

View File

@ -253,6 +253,8 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
ohai "Downloading from #{url}"
end
temporary_path.dirname.mkpath
curl_download resolved_url(url), to: temporary_path
end