Installers/allpac/uninstall.sh
VetheonGames 52ce1a81ed .
2024-06-10 21:55:27 -06:00

22 lines
444 B
Bash
Executable File

#!/bin/bash
# Function to remove a file or directory if it exists
remove_if_exists() {
if [ -e "$1" ]; then
rm -rf "$1"
echo "Removed $1"
else
echo "$1 does not exist, no need to remove"
fi
}
echo "Uninstalling AllPac..."
# Remove ~/.allpac directory
remove_if_exists "$HOME/.allpac"
# Remove /etc/profile.d/allpac.sh
sudo remove_if_exists "/etc/profile.d/allpac.sh"
echo "AllPac has been uninstalled."