Update: 3.0.2 and added script for sha256sums

This commit is contained in:
Jonas Dellinger
2020-09-20 22:40:42 +02:00
parent 0ba5ac7ee3
commit bcd84f9df9
3 changed files with 32 additions and 7 deletions

25
print-sums.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
pkgver="$1"
if [ -z "$pkgver" ]; then
echo "No pkgver set"
exit 1;
fi
file=`mktemp`
function download_and_print_sum() {
echo "Downloading for $arch ..."
curl -sL "https://github.com/rancher/k3d/releases/download/v$pkgver/k3d-linux-${arch}" --output "$file"
sum=`sha256sum $file`
echo "==> $sum"
}
arch="amd64"
download_and_print_sum
arch="arm64"
download_and_print_sum
arch="arm"
download_and_print_sum