From 143b88e33d8c09e6baf947f9d4f2550458b069d8 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 09:22:27 +0200 Subject: more fixes --- bin/ak-files | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/ak-files b/bin/ak-files index a25eb70..39950e3 100755 --- a/bin/ak-files +++ b/bin/ak-files @@ -36,18 +36,13 @@ add(){ FILENAME="$1" main $FILENAME $CRP cat $TEMPASSIN/data | json_pp - if [ $? == 0 ] - then - echo "cool" - else - echo "not?" - fi } main(){ FILENAME="$1" CRP="$2" echo "Adding $FILENAME" - tempassin + TEMPASSIN=tempassin + cd $TEMPASSIN cp $2/$1 $TEMPASSIN/$1 FILE="$TEMPASSIN/$1" FILE_IPFS_HASH=$(ipfs add -q $FILE) @@ -66,7 +61,13 @@ main(){ } EOF - pack_z_block file/add $TEMPASSIN/data + pack_z_block files/add $TEMPASSIN/data + if [ $? == 0 ] + then + echo "cool" + else + echo "not?" + fi } title(){ -- cgit v1.2.3