Updated install.sh
This commit is contained in:
parent
3a695dede9
commit
d8d9b44c87
|
@ -5,11 +5,12 @@ VERSION=1.0.0
|
||||||
arch=$(uname -sm)
|
arch=$(uname -sm)
|
||||||
|
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
Linux\ *64) exe=linux_amd64 ;;
|
Linux\ *64) arch=linux_amd64 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$exe > /usr/bin/gotop
|
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$arch.tgz > /tmp/gotop.tgz
|
||||||
chmod +x /usr/bin/gotop
|
tar xf /tmp/gotop.tgz -C /usr/bin
|
||||||
|
rm /tmp/gotop.tgz
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
cur_version=$(gotop -v 2>/dev/null)
|
cur_version=$(gotop -v 2>/dev/null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user