aboutsummaryrefslogtreecommitdiff
path: root/bin/enter
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-01-28 11:19:13 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-01-28 11:19:13 +0200
commit95ffb10421341080bec6529c06b5e7fa2c23979d (patch)
tree35fe32009d3c2eecef79ebb6e633120429a7a2fc /bin/enter
parente52404199eb6a4ef79eb5395c8cd92f37430c13c (diff)
downloadarching-kaos-tools-95ffb10421341080bec6529c06b5e7fa2c23979d.tar.gz
arching-kaos-tools-95ffb10421341080bec6529c06b5e7fa2c23979d.tar.bz2
arching-kaos-tools-95ffb10421341080bec6529c06b5e7fa2c23979d.zip
[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.
Diffstat (limited to 'bin/enter')
-rwxr-xr-xbin/enter9
1 files changed, 9 insertions, 0 deletions
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