blob: 1fefa70d837c0f5cd48b782fb6ae52fbe97bd8d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
VERSION=1.2.5
download() {
archive=gotop_${VERSION}_${1}.tgz
curl -LO https://github.com/cjbassi/gotop/releases/download/$VERSION/$archive
tar xf $archive
rm $archive
}
arch=$(uname -sm)
case "$arch" in
Linux\ *64) download linux_amd64 ;;
Linux\ *86) download linux_386 ;;
Darwin\ *64) download darwin_amd64 ;;
Darwin\ *86) download darwin_386 ;;
*)
echo "No binary found for your system"
exit 1
;;
esac
|