You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			454 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			454 B
		
	
	
	
		
			Bash
		
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -eu -o pipefail
 | 
						|
 | 
						|
: "${DESTDIR=./bin/release}"
 | 
						|
 | 
						|
if [ ! -d "$DESTDIR" ]; then
 | 
						|
  exit 0
 | 
						|
fi
 | 
						|
 | 
						|
# checksums
 | 
						|
if ! command shasum > /dev/null 2>&1; then
 | 
						|
  echo >&2 "ERROR: shasum is required"
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
find ./${DESTDIR}/ -type f \( -iname "buildx-*" ! -iname "*darwin*" \) -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/#  #' > ./${DESTDIR}/checksums.txt
 | 
						|
 | 
						|
# verify
 | 
						|
(
 | 
						|
  cd ./${DESTDIR}
 | 
						|
  shasum -a 256 -U -c checksums.txt
 | 
						|
)
 |