Updated download script and method

This commit is contained in:
Caleb Bassi 2018-02-26 12:55:05 -08:00
parent a00933af7c
commit 44a6eebae9
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ Binaries are currently available for 32/64bit Linux and 64bit OSX.
To download the latest binary for your system from GitHub, you can run the [download](https://github.com/cjbassi/gotop/blob/master/download.sh) script:
```
curl https://raw.githubusercontent.com/cjbassi/gotop/master/download.sh | bash
sh -c "$(curl https://raw.githubusercontent.com/cjbassi/gotop/master/download.sh)"
```
Then move `gotop` into your $PATH somewhere.

View File

@ -2,7 +2,7 @@
VERSION=1.0.1
install() {
download() {
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$VERSION-${1}.tgz > gotop.tgz
tar xf gotop.tgz
rm gotop.tgz
@ -10,9 +10,9 @@ install() {
arch=$(uname -sm)
case "$arch" in
Linux\ *64) install linux_amd64 ;;
Linux\ *86) install linux_386 ;;
Darwin\ *64) install darwin_amd64 ;;
Linux\ *64) download linux_amd64 ;;
Linux\ *86) download linux_386 ;;
Darwin\ *64) download darwin_amd64 ;;
*)
echo "No binary found for your system"
exit 1