Commit f406922a authored by Pat Gunn's avatar Pat Gunn

Update crew

Modify the download method to specify an output filename
parent 3379bdcc
......@@ -153,7 +153,7 @@ def download
sha1sum = @pkg.binary_sha1[@device[:architecture]]
end
Dir.chdir CREW_BREW_DIR do
system('wget', '--content-disposition', '--no-check-certificate', '-N', url)
system('wget', '--content-disposition', '--no-check-certificate', '-N', url, '-O', filename)
abort 'Checksum mismatch :/ try again' unless Digest::SHA1.hexdigest( File.read("./#{filename}") ) == sha1sum
end
puts "Archive downloaded"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment