diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 07:40:52 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 07:40:52 +0300 |
commit | 05ea0e3dca7209d1490658014c5e598e4d4dfdc4 (patch) | |
tree | 6cd1e163b64a98d4149f736d8d7625a954238205 /bin | |
parent | 2e7c34e1d5c2f407650648b7cba7f1621c9e8705 (diff) | |
download | arching-kaos-tools-05ea0e3dca7209d1490658014c5e598e4d4dfdc4.tar.gz arching-kaos-tools-05ea0e3dca7209d1490658014c5e598e4d4dfdc4.tar.bz2 arching-kaos-tools-05ea0e3dca7209d1490658014c5e598e4d4dfdc4.zip |
Pass clean formatted text to tmpfiles
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-enter | 4 |
1 files changed, 2 insertions, 2 deletions
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" |