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
pull/1730/head
Pavol Rusnak 3 years ago
parent 63a42def17
commit 552427ff69
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save