aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-cli
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 09:36:53 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 09:36:53 +0200
commitcd43e57b999422980ea95df7f1d03117342e358e (patch)
tree37afe07c509e7508d8f69edd0fe8793227401023 /bin/ak-cli
parent4e8f09fcf92eb8de4e39d512ce36b9ed87fbde87 (diff)
downloadarching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.gz
arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.bz2
arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.zip
Simplifying logs
Diffstat (limited to 'bin/ak-cli')
-rwxr-xr-xbin/ak-cli10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ak-cli b/bin/ak-cli
index 69b6a1c..a6bfb90 100755
--- a/bin/ak-cli
+++ b/bin/ak-cli
@@ -1,6 +1,6 @@
#!/bin/bash
#set -xe
-program=`basename $0`
+PROGRAM=`basename $0`
tempdir=`mktemp -d`
curdir=`pwd`
launch_timestamp=`date -u +%s`
@@ -14,7 +14,7 @@ new_line(){
# logit "WARNING" "Message"
# logit "INFO" "Message"
logit(){
- ak-logthis "<$program>" "[$1]" "$2"
+ ak-logthis "$PROGRAM" "$1" "$2"
}
# exit_program 0 'Clean exit'
@@ -31,7 +31,7 @@ exit_program(){
}
description(){
- full_title="$(printf '%s - %s' "$program" "$description_text")"
+ full_title="$(printf '%s - %s' "$PROGRAM" "$description_text")"
delimiter_count=`echo -n $full_title | wc -c`
printf '%s' "$full_title"
new_line
@@ -43,8 +43,8 @@ description(){
new_line
}
#description(){
-# printf '%s - \n' "$program"
-# printf '===========================================\n' "$program"
+# printf '%s - \n' "$PROGRAM"
+# printf '===========================================\n' "$PROGRAM"
#}
help_all(){