aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-files
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-files
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-files')
-rwxr-xr-xbin/ak-files8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak-files b/bin/ak-files
index 9fddc60..448ae76 100755
--- a/bin/ak-files
+++ b/bin/ak-files
@@ -1,6 +1,6 @@
#!/bin/bash
# The following creates a mixtape data message
-# We can extend it by calling the pack_z_block.sh mixtape/add data
+# We can extend it by calling the ak-pack_z_block.sh mixtape/add data
ZFILESDIR="$AK_WORKDIR/files"
TEMP="/tmp/aktmp"
PROGRAM="$(basename $0)"
@@ -71,7 +71,7 @@ main(){
FILE="$TEMPASSIN/$1"
logit "[INFO]" "Adding $FILE to IPFS..."
- FILE_IPFS_HASH=$(ipfs add -q $FILE)
+ FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
if [ $? == 0 ]; then
logit "[INFO]" "Added $FILE to IPFS"
else
@@ -87,7 +87,7 @@ main(){
fi
logit "[INFO]" "Adding signature to IPFS"
- SIGNATURE=$(ipfs add -q $TEMPASSIN/$SIGN_FILE)
+ SIGNATURE=$(ak-ipfs-add $TEMPASSIN/$SIGN_FILE)
if [ $? == 0 ]; then
logit "[INFO]" "Added"
else
@@ -107,7 +107,7 @@ echo "Printing data..."
cat $TEMPASSIN/data
echo "Publishing..."
- pack_z_block files/add data
+ ak-pack_z_block files/add data
if [ $? == 0 ]
then
echo "cool"