Download and determine the digest

This commit is contained in:
2023-08-21 13:38:20 +02:00
parent 258604f22d
commit 6983304b9d
6 changed files with 64 additions and 18 deletions

View File

@ -32,15 +32,7 @@ module SlackBuilder
end
def self.download(uri, target)
print Term::ANSIColor.green "Downloading #{uri} "
checksum = nil
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
checksum = start_download uri, target, http
end
puts
checksum
`./bin/slackbuilder download #{uri} #{target}`.strip
end
def self.hosted_sources(absolute_url)