aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-16 02:09:22 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-16 02:09:22 +0200
commit1b9eba4f2dfa59c75d3bb3ca47bfa4a4ed45cb90 (patch)
tree430bc675b153530f239af610ea0bc43dfa9a2975 /install.sh
parent2ce602f212ba1da19cf59f8e39946c13b977bb84 (diff)
downloadarching-kaos-tools-1b9eba4f2dfa59c75d3bb3ca47bfa4a4ed45cb90.tar.gz
arching-kaos-tools-1b9eba4f2dfa59c75d3bb3ca47bfa4a4ed45cb90.tar.bz2
arching-kaos-tools-1b9eba4f2dfa59c75d3bb3ca47bfa4a4ed45cb90.zip
Refactoring
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/install.sh b/install.sh
index 6d91c36..4d86c4d 100755
--- a/install.sh
+++ b/install.sh
@@ -30,7 +30,12 @@
##
clear
-if [ -d ~/.arching-kaos ]
+export AK_DEBUG="yes"
+fullprogrampath="$(realpath $0)"
+PROGRAM="$(basename $0)"
+descriptionString="Arching Kaos Tools Installer"
+
+if [ -d "${HOME}/.arching-kaos" ]
then
printf '%s\n' "Error: Found ~/.arching-kaos directory."
printf '%s\n' "Please backup your previous installationr and rerun ./install.sh."
@@ -59,12 +64,6 @@ fi
touch $AK_LOGSFILE
source ./lib/_ak_log
-
-export AK_DEBUG="yes"
-fullprogrampath="$(realpath $0)"
-PROGRAM="$(basename $0)"
-descriptionString="Arching Kaos Tools Installer"
-
source ./lib/_ak_script
_ak_usage