From e4e8b2768d8e8e8e4a2e7608ddfef50694a89c9d Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Mon, 19 Feb 2018 01:13:22 -0800 Subject: Added uninstall --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install.sh b/install.sh index 689f0d7..a14e832 100755 --- a/install.sh +++ b/install.sh @@ -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 ;; -- cgit v1.2.3