chore: Change the format for sha512 sum for releases (#25577)

This commit is contained in:
Sebastian Liebscher 2023-10-19 21:26:20 +02:00 committed by GitHub
parent 39ad3226c7
commit 505678b37b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -32,10 +32,9 @@ fi
NAME="${1}" NAME="${1}"
if [ -z "${2}" ]; then if [ -z "${2}" ]; then
gpg --armor --output "${NAME}".asc --detach-sig "${NAME}" gpg --armor --output "${NAME}".asc --detach-sig "${NAME}"
gpg --print-md SHA512 "${NAME}" > "${NAME}".sha512
else else
# The GPG key name to use # The GPG key name to use
GPG_LOCAL_USER="${2}" GPG_LOCAL_USER="${2}"
gpg --local-user "${GPG_LOCAL_USER}" --armor --output "${NAME}".asc --detach-sig "${NAME}" gpg --local-user "${GPG_LOCAL_USER}" --armor --output "${NAME}".asc --detach-sig "${NAME}"
gpg --local-user "${GPG_LOCAL_USER}" --print-md SHA512 "${NAME}" > "${NAME}".sha512
fi fi
shasum -a 512 "${NAME}" > "${NAME}.sha512"