Improve uninstall.sh

Add better comments.
Add better echo statements to inform user of changes.
This commit is contained in:
rhbollinger 2025-09-16 08:28:05 -05:00 committed by GitHub
parent ed440db38c
commit ce6f3fc38f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -2,8 +2,9 @@
# Uninstall script for Sn1per
# Created by @xer0dayz - https://sn1persecurity.com
# Check if root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
echo -e "This script must be run as root\nplease use sudo or switch to root"
exit 1
fi
@ -26,10 +27,14 @@ echo ""
INSTALL_DIR=/usr/share/sniper
# check if user is sure
echo -e "$OKRED[>]$RESET This script will uninstall sniper and remove ALL files under $INSTALL_DIR. Are you sure you want to continue?$RESET"
read answer
# Remove all files for Sn1per
echo -e "$OKBLUE removing Sn1per from your system."
rm -Rf /usr/share/sniper/
rm -f /usr/bin/sniper
echo -e "$OKBLUE[*]$RESET Done!$RESET"
# Inform user sniper is removed
echo -e "$OKBLUE[*]$RESET Done!$RESET"