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-following | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/ak-following') diff --git a/bin/ak-following b/bin/ak-following index 02ed85e..deb631d 100755 --- a/bin/ak-following +++ b/bin/ak-following @@ -1,10 +1,14 @@ #!/bin/bash +PROGRAM="$(basename $0)" +logit(){ + ak-logthis "$PROGRAM" "$1" "$2" +} FOLLOWING="$HOME/.arching-kaos/following" if [ -f $FOLLOWING ] then cat $FOLLOWING else - ak-logthis "No following file, creating" + logit "INFO" "No following file, creating" touch $FOLLOWING echo "None found" fi -- cgit v1.2.3