From 7e45b9def509ff28f70c28f50f5aa931f512d81b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 29 Mar 2023 23:46:45 +0300 Subject: Further renaming --- bin/ak-comments | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/ak-comments') diff --git a/bin/ak-comments b/bin/ak-comments index fc226b2..5dd4f08 100755 --- a/bin/ak-comments +++ b/bin/ak-comments @@ -1,13 +1,13 @@ #!/bin/bash -ZCOMMENTSDIR="$WORKDIR/comments" +ZCOMMENTSDIR="$AK_WORKDIR/comments" TEMP="/tmp/aktmp" if [ ! -d $ZCOMMENTSDIR ]; then mkdir $ZCOMMENTSDIR cd $ZCOMMENTSDIR git init - logthis "[INFO]" "zcommentsdir created along with git repo" + ak-logthis "[INFO]" "zcommentsdir created along with git repo" else - logthis "[INFO]" "zcommentsdir found" + ak-logthis "[INFO]" "zcommentsdir found" fi tempassin(){ if [ ! -z $1 ] @@ -27,7 +27,7 @@ create(){ then REFER_TO="$1" else - logthis "[ERROR]" "No reference given" + ak-logthis "[ERROR]" "No reference given" echo "[ERROR]" "No reference given" exit 1 fi @@ -39,7 +39,7 @@ create(){ IPFS_FILE=$(ipfs add -q $COMMENTS_FILE) mv $COMMENTS_FILE $ZCOMMENTSDIR/$TO_FILE add $TO_FILE - logthis "[INFO]" "Adding to git repo..." + ak-logthis "[INFO]" "Adding to git repo..." cd $ZCOMMENTSDIR git add $TO_FILE git commit -m "Added $TO_FILE with $(head -n 1 $ZCOMMENTSDIR/$TO_FILE)" -- cgit v1.2.3