Skip to content

Commit

Permalink
Update uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sreyasaju committed Jun 14, 2024
1 parent d712b02 commit 6b2c206
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions uninstall.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Pipefall instead of error checks to retain original error
set -euo pipefail

chmod +x uninstall.sh
echo
echo "#########################"
echo
Expand All @@ -14,13 +13,19 @@ echo
echo "#########################"
echo

# Config
REPO="srevinsaju/zap"

# Uninstallation
echo [~] Uninstalling zap
rm $(which zap)

# Installation Complete
# Checks if zap is installed and get the path
ZAP_PATH=$(which zap || true)
if [[ -z "$ZAP_PATH" ]]; then
echo "[!] zap is not installed or not found in PATH."
exit 1
fi

# Remove the zap binary
rm "$ZAP_PATH"

# Uninstallation Complete
echo
echo [~] Uninstallation Complete....
echo "[~] Uninstallation Complete...."

0 comments on commit 6b2c206

Please sign in to comment.