aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain-chk
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 09:34:01 +0200
commit465d5db06e56dc21072a8ff01258f6815d340b00 (patch)
treeae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-zchain-chk
parent1cb6c8bef840a96baa37392e9833a7674f805a83 (diff)
downloadarching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2
arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-zchain-chk')
-rwxr-xr-xbin/ak-zchain-chk7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ak-zchain-chk b/bin/ak-zchain-chk
index 02d8252..4e509ac 100755
--- a/bin/ak-zchain-chk
+++ b/bin/ak-zchain-chk
@@ -1,6 +1,7 @@
#!/bin/bash
PROGRAM="$(basename $0)"
source $AK_LIBDIR/_ak_logit
+source $AK_LIBDIR/_ak_ipfs
fix="0"
usage(){
@@ -78,7 +79,7 @@ do
# We concatenate the zblock's contents, pipe them through filter
# ak-json2bash and output them to tmp-file
- ak-ipfs-cat $zblock | ak-json2bash > tmp-zblock
+ _ak_ipfs_cat $zblock | ak-json2bash > tmp-zblock
logit "INFO" "ZBLOCK $zblock READ"
# Supposingly you are on a safe environment and you only have
@@ -90,7 +91,7 @@ do
# Same as above applies to BLOCK and DATA subparts of each ZBLOCK
# BLOCKS
- ak-ipfs-cat $block | ak-json2bash > tmp-block
+ _ak_ipfs_cat $block | ak-json2bash > tmp-block
source tmp-block
logit "INFO" "BLOCK $block SOURCED"
touch $AK_BLOCKDIR/$block
@@ -121,7 +122,7 @@ do
for value in ${blocks_found[@]}
do
echo $value
- ak-ipfs-cat $value | jq -M
+ _ak_ipfs_cat $value | jq -M
done
fi
exit 0