From 2966256a024d62059bf64271818ecd94c4627116 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 10 Mar 2025 17:38:45 +0200 Subject: Documents -s||--shell flags in ak executable --- lib/_ak_maintainance | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/_ak_maintainance') diff --git a/lib/_ak_maintainance b/lib/_ak_maintainance index f67c815..fd03573 100755 --- a/lib/_ak_maintainance +++ b/lib/_ak_maintainance @@ -20,7 +20,7 @@ source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script -function _ak_backup(){ +function _ak_maintainance_backup(){ if [ -n "${AK_WORKDIR}" ] && [ -d "${AK_WORKDIR}" ] then if [ -n "${AK_ROOT}" ] && [ -d "${AK_ROOT}" ] @@ -44,7 +44,7 @@ function _ak_backup(){ fi } -function _ak_restore(){ +function _ak_maintainance_restore(){ if [ -n "${AK_WORKDIR}" ] && [ -d "${AK_WORKDIR}" ] then _ak_log_error "${AK_WORKDIR} already exists! Aborting..." @@ -73,3 +73,12 @@ function _ak_restore(){ fi fi } + +function _ak_maintainance_nuke_all_but_core(){ + if [ -n "${AK_WORKDIR}" ] && [ -d "${AK_WORKDIR}" ] + then + export | grep '^AK_' + else + _ak_log_error "No AK_WORKDIR found or it does not exist" + fi +} -- cgit v1.2.3