aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:22:27 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:22:27 +0200
commit143b88e33d8c09e6baf947f9d4f2550458b069d8 (patch)
tree3b78e5a1813b6c77a307bf9db93a1377cc9eb7e0
parent06ab9d299786e3d25b7f3726a6877c4072aa6abe (diff)
downloadarching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.tar.gz
arching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.tar.bz2
arching-kaos-tools-143b88e33d8c09e6baf947f9d4f2550458b069d8.zip
more fixes
-rwxr-xr-xbin/ak-files17
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(){