aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-15 02:32:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-15 02:32:33 +0300
commit35040ce82f432203182b2290bef4973bd11cae97 (patch)
tree49c1ddf435c34f8c47a94cec2fcdbb982a5a49ac
parent4cbcd6cf97ae49c5c58cd4004d7a097ceb71388a (diff)
downloadarching-kaos-tools-35040ce82f432203182b2290bef4973bd11cae97.tar.gz
arching-kaos-tools-35040ce82f432203182b2290bef4973bd11cae97.tar.bz2
arching-kaos-tools-35040ce82f432203182b2290bef4973bd11cae97.zip
bugfix+refactoring
-rwxr-xr-xlib/_ak_log4
-rwxr-xr-xlib/_ak_script2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/_ak_log b/lib/_ak_log
index 8d1e227..0674a45 100755
--- a/lib/_ak_log
+++ b/lib/_ak_log
@@ -87,8 +87,8 @@ _ak_log_message(){
fi
}
-logit(){
- _ak_log_message "$PROGRAM" "$1" "$2"
+_ak_log_exit(){
+ _ak_log_message "$PROGRAM" "EXIT" "$1"
}
_ak_log_warning(){
diff --git a/lib/_ak_script b/lib/_ak_script
index 9838c15..4dbf34a 100755
--- a/lib/_ak_script
+++ b/lib/_ak_script
@@ -18,7 +18,7 @@ _ak_exit_program(){
then
_ak_log_error "$2 ($1)"
else
- _ak_log_message "EXIT" "$2"
+ _ak_log_exit "$2"
fi
exit $1
}