Add Uninstall script

This commit is contained in:
William Luke 2022-01-25 16:55:15 +03:00
parent 19016be7f8
commit f5450f5288

15
uninstall.sh Normal file
View File

@ -0,0 +1,15 @@
# Usefull when an install fails half way through
red=`tput setaf 1`
reset=`tput sgr0`
echo -n "${red}WARNING:${reset} This will delete all your keys and settings. Continue? (y/n):"
read confirmed
if [ "$confirmed" == "y" ]; then
echo "Deleting all keys and settings..."
rm -rf $HOME/.local/share/cic/
rm -rf $HOME/.config/cic
echo "Done"
else
echo "Aborting"
fi
exit 0