github.com/argoproj/argo-cd/v3@v3.2.1/hack/installers/checksums/add-oras-checksums.sh (about) 1 #!/usr/bin/env sh 2 3 # Usage: ./add-oras-checksums.sh 1.2.0 # use the desired version 4 5 wget "https://github.com/oras-project/oras/releases/download/v$1/oras_$1_checksums.txt" 6 7 while IFS="" read -r line || [ -n "$line" ] 8 do 9 filename=$(echo "$line" | awk -F ' ' '{print $2}' | sed "s#v$1#$1#") 10 test "${line#*windows}" = "$line" && echo "$line" | sed "s#v$1#$1#" > "$filename.sha256" 11 done < "oras_$1_checksums.txt" 12 13 rm "oras_$1_checksums.txt"