Skip to content
Snippets Groups Projects
Commit bc6e4d92 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

cronstatus: add short status on top of details

parent 52227987
No related branches found
No related tags found
1 merge request!260cronstatus: add short status on top of details
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment