aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain-chk
diff options
context:
space:
mode:
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