Revert "misc: replace sha256sum with shasum -a 256 (#1681)"

This reverts commit ec1d5e9fb5.

While the change enabled shasum calculation on mac, it broke it
on some Linux distros.
This commit is contained in:
Paul Meyer 2023-05-02 09:59:55 +02:00
parent 7d55e67f5c
commit 7ab23c28b8
10 changed files with 24 additions and 24 deletions

View file

@ -31,7 +31,7 @@ platforms=(
)
for platform in "${platforms[@]}"; do
computed_hash=$(shasum -a 256 "${pseudo_version_tools[$platform]}" | cut -d' ' -f1)
computed_hash=$(sha256sum "${pseudo_version_tools[$platform]}" | cut -d' ' -f1)
# compare hash to saved hash in ${BUILD_WORKSPACE_DIRECTORY}/tools/pseudo_version_${platform}.sha256
saved_hash=$(cat "${BUILD_WORKSPACE_DIRECTORY}/tools/pseudo_version_${platform}.sha256")
if [[ ${computed_hash} != "${saved_hash}" ]]; then