Merge pull request #26 from pgunn/master

Update crew
This commit is contained in:
Michał Siwek
2014-08-04 00:39:57 +02:00

2
crew
View File

@@ -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"