From 95ffb10421341080bec6529c06b5e7fa2c23979d Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 28 Jan 2022 11:19:13 +0200 Subject: [Change and fix] Change: - Brought up detach signatures for both BLOCK and DATA. Fix: - Reset timestamp to avoid printing the latest to blocks that are not have any. --- bin/enter | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/enter b/bin/enter index 9c65c73..6575685 100755 --- a/bin/enter +++ b/bin/enter @@ -44,6 +44,8 @@ do # Check if it is not our seed cause if it is we skip this part if [ "$zblock" != "$seed" ] then + # Reset timestamp since it's introduced later + timestamp='' # Announce to stdout which ZBLOCK is being read at the moment logthis "Examining $zblock" echo '{"zblock":"'$zblock'",' @@ -77,8 +79,15 @@ do logthis "DATA is $module module." command="$(echo $action | sed -e 's/\// /g' | awk '{ print $2 }')" logthis "COMMAND is $command" + if [ ! -v $timestamp ] + then + echo '"timestamp":"'$timestamp'",' + fi + echo '"block_signature":"'$block_signature'",' + echo '"detach":"'$detach'",' echo '"module":"'$module'",' echo '"action":"'$command'",' + echo '"gpg":"'$gpg'",' profile show $data # DATA (but we don't source it's stuff) # Only print to stdout -- cgit v1.2.3