Commit 34ef3b1c authored by Michał Siwek's avatar Michał Siwek

Merge pull request #26 from pgunn/master

Update crew
parents 19726d51 f406922a
...@@ -153,7 +153,7 @@ def download ...@@ -153,7 +153,7 @@ def download
sha1sum = @pkg.binary_sha1[@device[:architecture]] sha1sum = @pkg.binary_sha1[@device[:architecture]]
end end
Dir.chdir CREW_BREW_DIR do 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 abort 'Checksum mismatch :/ try again' unless Digest::SHA1.hexdigest( File.read("./#{filename}") ) == sha1sum
end end
puts "Archive downloaded" 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