File: hash-files

package info (click to toggle)
docker-buildx 0.13.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,356 kB
  • sloc: sh: 299; makefile: 87
file content (17 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

set -eu -o pipefail

: "${DESTDIR=./bin/release}"

if [ ! -d "$DESTDIR" ]; then
  exit 0
fi

# checksums
(
  cd ${DESTDIR}
  sha256sum -b buildx-* > ./checksums.txt
  sed -i '/darwin/d' ./checksums.txt
  sha256sum -c --strict checksums.txt
)