github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/hack/hash-files (about) 1 #!/usr/bin/env bash 2 3 set -eu -o pipefail 4 5 : "${DESTDIR=./bin/release}" 6 7 if [ ! -d "$DESTDIR" ]; then 8 exit 0 9 fi 10 11 # checksums 12 ( 13 cd ${DESTDIR} 14 sha256sum -b buildx-* > ./checksums.txt 15 sed -i '/darwin/d' ./checksums.txt 16 sha256sum -c --strict checksums.txt 17 )