aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-following
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-following
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-following')
-rwxr-xr-xbin/ak-following6
1 files changed, 5 insertions, 1 deletions
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