From f5450f52888d1e5aad9264005aa17a26b7bdd047 Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 25 Jan 2022 16:55:15 +0300 Subject: [PATCH] Add Uninstall script --- uninstall.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 uninstall.sh diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..2d52a30 --- /dev/null +++ b/uninstall.sh @@ -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 \ No newline at end of file