diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 09:22:27 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 09:22:27 +0200 |
commit | 143b88e33d8c09e6baf947f9d4f2550458b069d8 (patch) | |
tree | 3b78e5a1813b6c77a307bf9db93a1377cc9eb7e0 /bin | |
parent | 06ab9d299786e3d25b7f3726a6877c4072aa6abe (diff) | |
download | arching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.tar.gz arching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.tar.bz2 arching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.zip |
more fixes
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(){ |