diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-files | 17 |
1 files changed, 9 insertions, 8 deletions
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(){ |