From bc6e4d92c732191f6f77bdb78ff1964d5e052708 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 25 Apr 2024 11:11:42 +0200 Subject: [PATCH] cronstatus: add short status on top of details --- check_cronstatus | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_cronstatus b/check_cronstatus index b2a7349..a9245a0 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -26,6 +26,7 @@ # 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page # 2023-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output # 2024-04-03 v2.3 <axel.hahn@unibe.ch> add NO_COLOR=1 to supress color and emojis +# 2024-04-24 v2.4 <axel.hahn@unibe.ch> add short status on top of details # ====================================================================== @@ -96,6 +97,8 @@ else ph.setStatus "ok" fi ph.status Cronjob status $( echo "$out" | tail -1 ) + $statusScript -s + echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':' fi ph.exit -- GitLab