diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 13:01:40 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 13:01:40 +0300 |
commit | 2e5a5246016724aca4f3bbc2d7418542317a5147 (patch) | |
tree | 44e0dde26735c345b05f7bc45278e60887a7d3e3 /uninstall.sh | |
parent | a53f4930669fe6a1bec6dea3ce76f1a92bbe18ec (diff) | |
download | arching-kaos-tools-2e5a5246016724aca4f3bbc2d7418542317a5147.tar.gz arching-kaos-tools-2e5a5246016724aca4f3bbc2d7418542317a5147.tar.bz2 arching-kaos-tools-2e5a5246016724aca4f3bbc2d7418542317a5147.zip |
(new) uninstall script
Diffstat (limited to 'uninstall.sh')
-rwxr-xr-x | uninstall.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..2de1b0c --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,38 @@ +#!/bin/bash +printf "Arching Kaos Tools - Uninstaller\n" +printf "--------------------------------\n" +printf "Backing up your GPG keyring..." +tar cvfz $AK_ROOT/aknet-gpg-keyring-backup-`date -u +%Y%m%d`.tar.gz $AK_GPGHOME +if [ $? -ne 0 ] +then + printf "\tFailed! Aborting...\n" + exit 1 +fi +printf "\tOK!\n" + +printf "Removing %s..." "$AK_WORKDIR" +rm -rf $AK_WORKDIR +if [ $? -ne 0 ] +then + printf "\tFailed! Aborting...\n" + exit 1 +fi +printf "\tOK!\n" + +printf "Unsetting sourcing from .bashrc ..." +sed -i.bak -e 's/source.*arching-kaos\/rc//g' $HOME/.bashrc +if [ $? -ne 0 ] +then + printf "\tFailed! Aborting...\n" + exit 1 +fi +printf "\tOK!\n" + +printf "Resourcing .bashrc..." +source $HOME/.bashrc +if [ $? -ne 0 ] +then + printf "\tFailed! Aborting...\n" + exit 1 +fi +printf "\tOK!\n" |