diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 00:24:49 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 00:24:49 +0300 |
commit | 9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1 (patch) | |
tree | 5f16ff3c7506b653862e0171d71163074f67c96e /bin/ak-comments | |
parent | fe1fb88889b2c3949383c254f3058da24ba5e3f2 (diff) | |
download | arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.gz arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.bz2 arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.zip |
Renaming to prefix convention, introduced ipfs wrappers so it can be easier to maintain, changes in filesplitter and filejoiner as they move sm submodule namespace... like there are namespaces in bash or something
Diffstat (limited to 'bin/ak-comments')
-rwxr-xr-x | bin/ak-comments | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak-comments b/bin/ak-comments index 5dd4f08..2934e00 100755 --- a/bin/ak-comments +++ b/bin/ak-comments @@ -36,7 +36,7 @@ create(){ vi $COMMENTS_FILE echo "Renaming..." TO_FILE=$COMMENTS_FILE - IPFS_FILE=$(ipfs add -q $COMMENTS_FILE) + IPFS_FILE=$(ak-ipfs-add $COMMENTS_FILE) mv $COMMENTS_FILE $ZCOMMENTSDIR/$TO_FILE add $TO_FILE ak-logthis "[INFO]" "Adding to git repo..." @@ -70,10 +70,10 @@ add(){ FILE=$ZCOMMENTSDIR/$1 echo "Adding comments from " $FILE DATETIME="$1" - FILE_IPFS_HASH=$(ipfs add -q $FILE) + FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE - FILE_SIGNATURE=$(ipfs add -q $FILE_SIGN_FILE) + FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { "datetime":"$DATETIME", @@ -85,7 +85,7 @@ EOF echo "File $FILE doesn't exist"; exit 2 fi - REFERENCE="$(pack_z_block "comments/add" data)" + REFERENCE="$(ak-pack_z_block "comments/add" data)" if [ $? == 0 ] then echo "Comment added successfully" |