Updated to use progress bar, instead of download statistics.

This commit is contained in:
Guannan Wang @ super-lollipop
2017-07-31 00:14:07 -04:00
parent f2579a2c56
commit daa1636553

2
crew
View File

@@ -370,7 +370,7 @@ def download
sha256sum = @pkg.binary_sha256[@device[:architecture]]
end
Dir.chdir CREW_BREW_DIR do
system('curl', '--insecure', '-L', url, '-o', filename)
system('curl', '--insecure', '-L', '-#', url, '-o', filename)
abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum
end