From 1b9eba4f2dfa59c75d3bb3ca47bfa4a4ed45cb90 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 16 Dec 2024 02:09:22 +0200 Subject: Refactoring --- install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'install.sh') 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 -- cgit v1.2.3