From 05ea0e3dca7209d1490658014c5e598e4d4dfdc4 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 07:40:52 +0300 Subject: Pass clean formatted text to tmpfiles --- bin/ak-enter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ak-enter') diff --git a/bin/ak-enter b/bin/ak-enter index 45fcace..2918cc2 100755 --- a/bin/ak-enter +++ b/bin/ak-enter @@ -122,7 +122,7 @@ do logit "[INFO]" "ZBLOCK $zblock is JSON" # Then we pass it through the filter and save it - ak-ipfs-cat $zblock | ak-json2bash > tmp-zblock + ak-ipfs-cat $zblock | jq -M | ak-json2bash > tmp-zblock # Be sure that there are the expected values # We need 'block' and 'block_signature' inside a 'zblock' @@ -158,7 +158,7 @@ do # Same as above applies to BLOCK and DATA subparts of each ZBLOCK # BLOCKS echo -n '"block":"'$block'",' - ak-ipfs-cat $block | ak-json2bash > tmp-block + ak-ipfs-cat $block | jq -M | ak-json2bash > tmp-block if [ "$?" -ne 0 ] then logit "[ERROR]" "BLOCK $block READ failed" -- cgit v1.2.3