mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +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:
parent
63a42def17
commit
552427ff69
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user