aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_script
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-14 22:36:12 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-14 22:36:12 +0300
commit4217dc0560bf40b4fa7ae6a6f964bd56b418712e (patch)
tree020e304e23b29d0eb12199c2f605f1262a3beb04 /lib/_ak_script
parent7743751290bb4e7678940be65725a48386e7b986 (diff)
downloadarching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.gz
arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.bz2
arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.zip
Refactoring
Diffstat (limited to 'lib/_ak_script')
-rwxr-xr-xlib/_ak_script8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/_ak_script b/lib/_ak_script
index 3a7f635..9838c15 100755
--- a/lib/_ak_script
+++ b/lib/_ak_script
@@ -16,9 +16,9 @@ _ak_exit_program(){
# rm -rf $tempdir
if [ $1 -ne 0 ]
then
- logit "ERROR" "$2 ($1)"
+ _ak_log_error "$2 ($1)"
else
- logit "EXIT" "$2"
+ _ak_log_message "EXIT" "$2"
fi
exit $1
}
@@ -29,7 +29,7 @@ _ak_help(){
cat $fullprogrampath |grep '^##'| sed 's/^##//g;s/^ //g' 1>&2
exit 1
else
- logit "ERROR" "fullprogrampath was not set"
+ _ak_log_error "fullprogrampath was not set"
exit 1
fi
}
@@ -39,7 +39,7 @@ _ak_title_description(){
if [ ! -n "$descriptionString" ]
then
# Choose to exit with error to enforce standard
- logit "ERROR" "No description string"
+ _ak_log_error "No description string"
exit 1
# Alternative solution
# full_title="$(printf '%s' "$PROGRAM")"