From cd43e57b999422980ea95df7f1d03117342e358e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 09:36:53 +0200 Subject: Simplifying logs --- bin/ak-cli | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/ak-cli') 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(){ -- cgit v1.2.3