Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo and add sudo #1

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sh/bebasit-uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ uninstall_tunnel(){
confirm "-x $(command -v tmux)" "Tmux" "sudo apt -y remove tmux"
case $1 in
"Green Tunnel" )
confirm "-x $(command -v gt)" "Green Tunnel" "nmp un -g gt"
confirm "-x $(command -v gt)" "Green Tunnel" "npm un -g gt"
sudo rm -rf /usr/bin/gt
;;
"PowerTunnel" )
Expand All @@ -66,14 +66,14 @@ uninstall_tunnel(){
echo "Script ini hanya work untuk MacOS High Sierra hingga yang terbaru"
echo "Akan mencopot : $1, Tmux, dan Java (untuk PowerTunnel)"
echo "Tunnel yang akan dipasang : $1"
read -p "Apakah anda yakin ingin melanjutkan pemasangan (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
read -p "Apakah anda yakin ingin melanjutkan pencopotan (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
case $1 in
"Green Tunnel" )
confirm "-x $(command -v gt)" "Green Tunnel" "npm u -g gt"
confirm "-x $(command -v gt)" "Green Tunnel" "npm un -g gt"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"u" is not alias for uninstall. Instead we can use: remove, rm, r, un, unlink

sudo rm -rf /usr/bin/gt
;;
"PowerTunnel" )
confirm "-e ~/.bebasit" "PowerTunnel" "rm -rf ~/.bebasit"
confirm "-e ~/.bebasit" "PowerTunnel" "sudo rm -rf ~/.bebasit"
confirm "-x $(command -v java)" "Java" "brew uninstall java"
esac
;;
Expand Down