aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_ak_log2
-rwxr-xr-xlib/_ak_maintainance3
-rwxr-xr-xlib/_ak_script4
-rwxr-xr-xlib/_ak_utils22
4 files changed, 24 insertions, 7 deletions
diff --git a/lib/_ak_log b/lib/_ak_log
index 9d6fba0..de7c2ae 100755
--- a/lib/_ak_log
+++ b/lib/_ak_log
@@ -18,7 +18,7 @@
### along with this program. If not, see <http://www.gnu.org/licenses/>.
###
-source $AK_LIBDIR/_ak_script
+source $AK_LIBDIR/_ak_utils
function _ak_log_print_log_line(){
if [ -n "$1" ]
diff --git a/lib/_ak_maintainance b/lib/_ak_maintainance
index fd03573..030060e 100755
--- a/lib/_ak_maintainance
+++ b/lib/_ak_maintainance
@@ -18,7 +18,6 @@
### along with this program. If not, see <http://www.gnu.org/licenses/>.
###
source $AK_LIBDIR/_ak_log
-source $AK_LIBDIR/_ak_script
function _ak_maintainance_backup(){
if [ -n "${AK_WORKDIR}" ] && [ -d "${AK_WORKDIR}" ]
@@ -77,7 +76,7 @@ function _ak_maintainance_restore(){
function _ak_maintainance_nuke_all_but_core(){
if [ -n "${AK_WORKDIR}" ] && [ -d "${AK_WORKDIR}" ]
then
- export | grep '^AK_'
+ export | grep '^declare -x AK_' | grep -v 'BINDIR' | grep -v 'LIBDIR' | grep -v 'MODULESDIR'
else
_ak_log_error "No AK_WORKDIR found or it does not exist"
fi
diff --git a/lib/_ak_script b/lib/_ak_script
index 8640e18..b0a0785 100755
--- a/lib/_ak_script
+++ b/lib/_ak_script
@@ -218,7 +218,3 @@ function _ak_countdown_seconds(){
sleep 1
printf "\n"
}
-
-function _ak_datetime_unix(){
- date -u +%s | tr -d '\n'
-}
diff --git a/lib/_ak_utils b/lib/_ak_utils
new file mode 100755
index 0000000..d1ca496
--- /dev/null
+++ b/lib/_ak_utils
@@ -0,0 +1,22 @@
+#!/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/>.
+###
+function _ak_datetime_unix(){
+ date -u +%s | tr -d '\n'
+}