1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 13:12:05 +00:00

feat(ci): some systems do not have sha256sum only shasum

one example is freebsd/macos

shasum also requires two spaces between a hash and a filename
This commit is contained in:
Pavol Rusnak 2021-07-20 17:29:16 +02:00
parent 63a42def17
commit 552427ff69
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -74,7 +74,11 @@ else
fi
# check alpine checksum
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | sha256sum -c
if command -v sha256sum &> /dev/null ; then
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | sha256sum -c
else
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | shasum -a 256 -c
fi
docker build --build-arg ALPINE_VERSION="$ALPINE_VERSION" --build-arg ALPINE_ARCH="$ALPINE_ARCH" --build-arg NIX_VERSION="$NIX_VERSION" -t "$CONTAINER_NAME" ci/