aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-reference
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 00:24:49 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 00:24:49 +0300
commit9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1 (patch)
tree5f16ff3c7506b653862e0171d71163074f67c96e /bin/ak-reference
parentfe1fb88889b2c3949383c254f3058da24ba5e3f2 (diff)
downloadarching-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-reference')
-rwxr-xr-xbin/ak-reference8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak-reference b/bin/ak-reference
index 79d21fd..e2ad2df 100755
--- a/bin/ak-reference
+++ b/bin/ak-reference
@@ -47,7 +47,7 @@ EOF
TO_FILE="$REFERENCEFILE-$REFERENCE-$REFER_TO"
mv $REFERENCEFILE $ZREFERENCESDIR/$TO_FILE
echo $TO_FILE
- IPFS_FILE=$(ipfs add -q $ZREFERENCESDIR/$TO_FILE)
+ IPFS_FILE=$(ak-ipfs-add $ZREFERENCESDIR/$TO_FILE)
sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZREFERENCESDIR/README
add $ZREFERENCESDIR/$TO_FILE
echo "Adding to git repo..."
@@ -101,10 +101,10 @@ add(){
echo "Adding references from " $FILE
DATETIME=$(echo $FILE | cut -d - -f 1 | awk '{print $1}')
#FILE=$(head -n 1 $FILE)
- 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":"$(date -u +%s)",
@@ -118,7 +118,7 @@ EOF
echo "File $FILE doesn't exist";
exit 2
fi
- pack_z_block "references/add" data
+ ak-pack_z_block "references/add" data
if [ $? == 0 ]
then
echo "References added successfully"