fix bump_version

This commit is contained in:
Alexey Terentyev 2021-10-08 03:17:35 +03:00
parent 87ce7ad1a4
commit 7c54722a29
No known key found for this signature in database
GPG key ID: 60D6C550AEEBB467

View file

@ -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