Fix SHA256 download: follow redirects #132

Merged
techknowlogick merged 2 commits from :fix-sha256 into master 2021-06-18 16:08:07 +00:00
2 changed files with 4 additions and 4 deletions

View File

@ -22,13 +22,13 @@ class Gitea < Formula
stable do
version "1.14.2"
url Gitea.bin_url(version)
sha256 `curl -s #{url}.sha256`.split(" ").first
sha256 `curl -sL #{url}.sha256`.split(" ").first
end
head do
version "master"
url Gitea.bin_url(version)
sha256 `curl -s #{url}.sha256`.split(" ").first
sha256 `curl -sL #{url}.sha256`.split(" ").first
end
head do

4
tea.rb
View File

@ -7,13 +7,13 @@ class Tea < Formula
stable do
version "0.7.0"
url "https://dl.gitea.io/tea/#{version}/tea-#{version}-darwin-amd64"
sha256 `curl -s https://dl.gitea.io/tea/#{version}/tea-#{version}-darwin-amd64.sha256`.split(" ").first
sha256 `curl -sL https://dl.gitea.io/tea/#{version}/tea-#{version}-darwin-amd64.sha256`.split(" ").first
end
head do
version "master"
url "https://dl.gitea.io/tea/master/tea-master-darwin-amd64"
sha256 `curl -s https://dl.gitea.io/tea/master/tea-master-darwin-amd64.sha256`.split(" ").first
sha256 `curl -sL https://dl.gitea.io/tea/master/tea-master-darwin-amd64.sha256`.split(" ").first
end
head do