diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-03-29 23:46:45 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-03-29 23:46:45 +0300 |
commit | 7e45b9def509ff28f70c28f50f5aa931f512d81b (patch) | |
tree | cba30ff5eb679f1c6426dedb5383bd401f8f8cfb /bin/ak-comments | |
parent | 286b71a6ead8c7234cfbc0b8ece05c8239a4f32c (diff) | |
download | arching-kaos-tools-7e45b9def509ff28f70c28f50f5aa931f512d81b.tar.gz arching-kaos-tools-7e45b9def509ff28f70c28f50f5aa931f512d81b.tar.bz2 arching-kaos-tools-7e45b9def509ff28f70c28f50f5aa931f512d81b.zip |
Further renaming
Diffstat (limited to 'bin/ak-comments')
-rwxr-xr-x | bin/ak-comments | 10 |
1 files changed, 5 insertions, 5 deletions
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)" |