diff options
Diffstat (limited to 'bin/ak-zblock-manipulator')
-rwxr-xr-x | bin/ak-zblock-manipulator | 7 |
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) |