aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-16 01:51:01 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-16 01:51:01 +0200
commit3a503ee816c858b86264376c3bc4bb3ff2635655 (patch)
treed88aa3a8c7b34802a13ae1a5ed5a936b26ae11cb
parent69ae9d0ef008aace85e4541bbb57c22a42c27f98 (diff)
downloadarching-kaos-tools-3a503ee816c858b86264376c3bc4bb3ff2635655.tar.gz
arching-kaos-tools-3a503ee816c858b86264376c3bc4bb3ff2635655.tar.bz2
arching-kaos-tools-3a503ee816c858b86264376c3bc4bb3ff2635655.zip
More work arounds
-rwxr-xr-xinstall.sh45
1 files changed, 36 insertions, 9 deletions
diff --git a/install.sh b/install.sh
index 0759f61..32bddda 100755
--- a/install.sh
+++ b/install.sh
@@ -1,14 +1,42 @@
#!/usr/bin/env bash
+###
+### arching-kaos-tools
+### Tools to interact and build an Arching Kaos Infochain
+### Copyright (C) 2021 - 2025 kaotisk
+###
+### This program is free software: you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation, either version 3 of the License, or
+### (at your option) any later version.
+###
+### This program is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with this program. If not, see <http://www.gnu.org/licenses/>.
+###
+##
+## Welcome to our ever involving installer
+## We will be as verbose as possible, yet minimal
+##
+## Our default behaviour is to ask the less is needed
+##
+## For minimum overall friction, we will ask sudo access only if it's
+## needed for a missing package.
+##
+## We discourage running the installer with sudo.
+##
clear
export AK_DEBUG="yes"
-printf '%s\n' "Arching Kaos Tools Installer"
-printf '%s\n' "============================"
-printf '%s\n' "Welcome to our ever involving installer"
-printf '%s\n' "We will be as verbose as possible, yet minimal"
-printf '%s\n' "Our default behaviour is to ask the less is needed"
-printf '%s\n' "For minimum overall friction, we will ask sudo access only if it's"
-printf '%s\n' "needed for a missing package."
-printf '%s\n' "We discourage running the installer with sudo."
+fullprogrampath="$(realpath $0)"
+PROGRAM="$(basename $0)"
+descriptionString="Arching Kaos Tools Installer"
+
+source ./lib/_ak_script
+_ak_usage
+
if [ -d ~/.arching-kaos ]
then
printf '%s\n' "Error: Found ~/.arching-kaos directory."
@@ -75,7 +103,6 @@ fi
touch $AK_LOGSFILE
source ./lib/_ak_log
-source ./lib/_ak_script
_ak_check_and_create_dir $AK_CONFIGDIR
_ak_check_and_create_dir $AK_BINDIR