aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zblock-manipulator
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-zblock-manipulator
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-zblock-manipulator')
-rwxr-xr-xbin/ak-zblock-manipulator7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ak-zblock-manipulator b/bin/ak-zblock-manipulator
index 89c8454..20de3e0 100755
--- a/bin/ak-zblock-manipulator
+++ b/bin/ak-zblock-manipulator
@@ -15,7 +15,10 @@
# FINGERPRINT="$(gpg2 --homedir $AK_GPGHOME --list-keys | grep kaos@kaos.kaos -1 | head -n1 | awk '{print $1}')"
# Below, the usage information
-PROGRAM="zblock_manipulator"
+PROGRAM="$(basename $0)"
+logit(){
+ ak-logthis "$PROGRAM" "$1" "$2"
+}
usage(){
echo "Usage:"
@@ -43,7 +46,7 @@ usage(){
main(){
- ak-logthis "We are doing" $BLOCK_TO_ADD "with content" $PREVIOUS
+ logit "[INFO]" "We are doing" $BLOCK_TO_ADD "with content" $PREVIOUS
# We add it to IPFS
MESSAGE_HASH=$(ak-ipfs-add $MESSAGE)