diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-02 11:17:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-02 11:17:06 +0200 |
commit | bb6d0002c924dbb74674585ff05ee23c436f2a32 (patch) | |
tree | d6c3738c8432b18b6db65406610c9f6435bf002f | |
parent | fc92257dc31908454bb0c89a9adbafe031a6e743 (diff) |
Even more journalctl-related fixes
-rwxr-xr-x | buildos | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1055,10 +1055,11 @@ EOF echo; "${c[@]}" --priority 4 | head -n 200; echo; - echo "context [$sd -- $ed]:"; + echo "context:"; echo; if [ -n "$oc" ]; then - unset 'c[${#c[@]}-2]' # Pop cursor (for --since/--until). + unset 'c[-1]' # Pop cursor (for --since/--until). + unset 'c[-1]' fi; "${c[@]}" --since "$sd" --until "$ed" | head -n 200 } | email "$s" |