mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 10:11:26 +05:30
fix bump_version
This commit is contained in:
parent
87ce7ad1a4
commit
7c54722a29
|
@ -19,7 +19,11 @@ for bin in ${binaries};do
|
|||
|
||||
file_url="https://dl.gitea.io/${bin}/${version}"
|
||||
for os in ${supported_os}; do
|
||||
sha256_file="${bin}-${version}-${os}.xz.sha256"
|
||||
sha256_file="${bin}-${version}-${os}"
|
||||
if [ "$os" != "linux-386" -a "$os" != "linux-arm64" ]; then
|
||||
sha256_file="${sha256_file}.xz"
|
||||
fi
|
||||
sha256_file="${sha256_file}.sha256"
|
||||
sha256=$(curl -sL "${file_url}/${sha256_file}" | awk '{print$1}')
|
||||
sed -r "s/^(\s+when \"${os}\" then).*/\1 \"${sha256}\"/" -i "${file}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue