Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Added uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Feb 19, 2018
1 parent 3bf9e66 commit e4e8b27
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ download() {
chmod +x /usr/bin/gotop
}

uninstall() {
rm /usr/bin/gotop
}

for opt in "$@"; do
case $opt in
--uninstall)
uninstall
exit 0
;;
*)
echo "unknown option: $opt"
exit 1
;;
esac
done

arch=$(uname -sm)
case "$arch" in
Linux\ *64) download gotop-linux_amd64 ;;
Expand Down

0 comments on commit e4e8b27

Please sign in to comment.