From 3376c472fada0453eaed54b66fb62316deab22ef Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 08:00:54 +0200 Subject: Further solving --- bin/ak-files | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/ak-files b/bin/ak-files index f698290..ac81100 100755 --- a/bin/ak-files +++ b/bin/ak-files @@ -32,15 +32,19 @@ usage(){ } add(){ - PWD="$(pwd)" - FILE="$PWD/$1" - main + CRP="$(pwd)" + FILENAME="$1" + main $FILENAME $CRP cat $PWD/data | json_pp pack_z_block file/add $PWD/data } main(){ - echo "Adding $FILE" - + FILENAME="$1" + CRP="$2" + echo "Adding $FILENAME" + tempassin + cp $2/$1 $TEMPASSIN/$1 + FILE="$TEMPASSIN/$1" FILE_IPFS_HASH=$(ipfs add -q $FILE) SIGN_FILE=$FILE".asc" -- cgit v1.2.3