Updated install.sh
This commit is contained in:
parent
acc36cfab2
commit
919d48123a
|
@ -10,7 +10,7 @@ Built with [gopsutil](https://github.com/shirou/gopsutil), [drawille-go](https:/
|
|||
|
||||
Go code compiles to a single executable so you just need to somehow get that into your $PATH.
|
||||
|
||||
Either manually download the latest release for your OS from the releases tab and move it into `/bin`, or run this command to do it for you:
|
||||
Either manually download the latest release for your OS from the releases tab and move it into `/usr/bin`, or run this command to do it for you:
|
||||
|
||||
```
|
||||
curl https://raw.githubusercontent.com/cjbassi/gotop/master/install.sh | sudo sh
|
||||
|
|
11
install.sh
11
install.sh
|
@ -2,5 +2,12 @@
|
|||
|
||||
VERSION=v1.0
|
||||
|
||||
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop > /usr/bin/gotop
|
||||
chmod +x /usr/bin/gotop
|
||||
download() {
|
||||
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/${1} > /usr/bin/gotop
|
||||
chmod +x /usr/bin/gotop
|
||||
}
|
||||
|
||||
arch=$(uname -sm)
|
||||
case "$arch" in
|
||||
Linux\ *64) download gotop-linux_amd64 ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue
Block a user