From c9b50f3cde94eb55dee400a69a7c20ec9409f720 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 10 Jan 2025 11:53:02 +0100 Subject: [PATCH] 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] --- build-docker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-docker.sh b/build-docker.sh index e24f31701d..d9e2bec98c 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -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]/_}"