aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:14:38 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:14:38 +0300
commit925b16d12bc27aba96b9d543485a20a5e25ddbac (patch)
treee7f663e64c1196c0497066db576350bf1b672e9a /uninstall.sh
parent038cd220d6edf02a5e92e58ccf1097b49f4cc626 (diff)
downloadarching-kaos-tools-925b16d12bc27aba96b9d543485a20a5e25ddbac.tar.gz
arching-kaos-tools-925b16d12bc27aba96b9d543485a20a5e25ddbac.tar.bz2
arching-kaos-tools-925b16d12bc27aba96b9d543485a20a5e25ddbac.zip
Corrected condition and worked around printf bug
Diffstat (limited to 'uninstall.sh')
-rwxr-xr-xuninstall.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/uninstall.sh b/uninstall.sh
index 380b925..ca8e281 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -1,7 +1,7 @@
#!/bin/bash
printf "Arching Kaos Tools - Uninstaller\n"
-printf "--------------------------------\n"
-if [ -d "$AK_WORKDIR" ] ; then printf "No arching-kaos found... Aborting...\n"; exit 1; fi
+echo '--------------------------------'
+if [ ! -d "$AK_WORKDIR" ] ; then printf "No arching-kaos found... Aborting...\n"; exit 1; fi
printf "Backing up your GPG keyring..."
tar cfz $AK_ROOT/aknet-gpg-keyring-backup-`date -u +%Y%m%d`.tar.gz $AK_GPGHOME
if [ $? -ne 0 ]