summarylogtreecommitdiffstats
path: root/print-sums.sh
blob: 5240f4fbd0fd4e00187364ccb1bef84f0f86862f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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/imolorhe/altair/releases/download/v$pkgver/altair_${pkgver}_${arch}_linux.AppImage" --output "$file"
  sum=`sha256sum $file`
  echo "==> $sum"
}

arch="x86_64"
download_and_print_sum