From d67b39684bd60d9b7df54bd7900407d6ee9a5cc6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 3 Aug 2023 10:51:06 +0300 Subject: Adds id that counts zblocks, changed when output starts --- bin/ak-enter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ak-enter') diff --git a/bin/ak-enter b/bin/ak-enter index 512da45..c43b891 100755 --- a/bin/ak-enter +++ b/bin/ak-enter @@ -135,7 +135,6 @@ do timestamp='' # Announce to logs which ZBLOCK is being read at the moment logit "[INFO]" "Examining $zblock" - echo -n '{"zblock":"'$zblock'",' # We concatenate the zblock's contents, pipe # them through filter ak-json2bash and output @@ -149,6 +148,7 @@ do exit 1 fi logit "[INFO]" "ZBLOCK $zblock READ" + echo -n '{"id":"'$counter'","zblock":"'$zblock'",' # If it's JSON formated ak-ipfs-cat $zblock | jq -M > /dev/null 2>&1 -- cgit v1.2.3