diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-19 15:56:35 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-19 15:56:35 -0800 |
commit | d8d9b44c87b4a69f8c69fe45f3c5f0a793747634 (patch) | |
tree | a2abb5f70ae274487b7667d537c10bb5ad5fa52a /install.sh | |
parent | 3a695dede9f4dd38e2084268caf4422eb8c11f76 (diff) |
Updated install.sh
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,11 +5,12 @@ VERSION=1.0.0 arch=$(uname -sm) case "$arch" in - Linux\ *64) exe=linux_amd64 ;; + Linux\ *64) arch=linux_amd64 ;; esac -curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$exe > /usr/bin/gotop -chmod +x /usr/bin/gotop +curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$arch.tgz > /tmp/gotop.tgz +tar xf /tmp/gotop.tgz -C /usr/bin +rm /tmp/gotop.tgz update() { cur_version=$(gotop -v 2>/dev/null) |