From 465d5db06e56dc21072a8ff01258f6815d340b00 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 09:34:01 +0200 Subject: new lib _ak_ipfs --- bin/ak-zchain-chk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/ak-zchain-chk') 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 -- cgit v1.2.3