Skip to content

Commit

Permalink
Merge pull request #1095 from crazy-max/fix-checksum-file
Browse files Browse the repository at this point in the history
release: fix checksum file
  • Loading branch information
crazy-max authored May 5, 2022
2 parents 27bdbea + df799b6 commit e0cffbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit e0cffbd

Please sign in to comment.