diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-03 10:51:06 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-03 10:51:06 +0300 |
commit | d67b39684bd60d9b7df54bd7900407d6ee9a5cc6 (patch) | |
tree | b3374e50922bfb7d526ab8a05ab3a5a018ea7c4c | |
parent | 46d5134382be9073bb9aac935b36821b1aeedc76 (diff) | |
download | arching-kaos-tools-d67b39684bd60d9b7df54bd7900407d6ee9a5cc6.tar.gz arching-kaos-tools-d67b39684bd60d9b7df54bd7900407d6ee9a5cc6.tar.bz2 arching-kaos-tools-d67b39684bd60d9b7df54bd7900407d6ee9a5cc6.zip |
Adds id that counts zblocks, changed when output starts
-rwxr-xr-x | bin/ak-enter | 2 |
1 files changed, 1 insertions, 1 deletions
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 |