From df799b6a0fd5db69edc52564b3ae9fbe1bc2cce1 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 5 May 2022 14:29:50 +0200 Subject: [PATCH] release: fix checksum file Signed-off-by: CrazyMax --- hack/release | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hack/release b/hack/release index 4e9471c3..cde2041b 100755 --- a/hack/release +++ b/hack/release @@ -17,4 +17,10 @@ if ! type shasum > /dev/null 2>&1; then echo >&2 "ERROR: shasum is required" exit 1 fi -find ./${RELEASE_OUT}/ -type f \( -iname "buildx-*" ! -iname "*darwin*" \) -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/# #' > ./${RELEASE_OUT}/checksums.txt +find ./${RELEASE_OUT}/ -type f \( -iname "buildx-*" ! -iname "*darwin*" \) -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/# #' > ./${RELEASE_OUT}/checksums.txt + +# verify +( + cd ./${RELEASE_OUT} + shasum -a 256 -U -c checksums.txt +)