1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-06 08:59:15 +00:00

build(build-docker): use shasum first, then sha256sum

macOS recently introduced sha256sum command which can not read
from stdin if "-c" option is provided

using shasum first fixes this issue

[no changelog]
This commit is contained in:
Pavol Rusnak 2025-01-10 11:53:02 +01:00 committed by matejcik
parent 1ef62aaf0b
commit c9b50f3cde

View File

@ -156,10 +156,10 @@ else
fi
# check alpine checksum
if command -v sha256sum &> /dev/null ; then
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | sha256sum -c
else
if command -v shasum &> /dev/null ; then
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | shasum -a 256 -c
else
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | sha256sum -c
fi
tag_clean="${TAG//[^a-zA-Z0-9]/_}"