diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2022-01-28 11:19:13 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2022-01-28 11:19:13 +0200 |
commit | 95ffb10421341080bec6529c06b5e7fa2c23979d (patch) | |
tree | 35fe32009d3c2eecef79ebb6e633120429a7a2fc | |
parent | e52404199eb6a4ef79eb5395c8cd92f37430c13c (diff) | |
download | arching-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.
-rwxr-xr-x | bin/enter | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |