From 7c2f51cdada5d9991be82335aa094b9e68b0b8cd Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Mon, 24 Jul 2017 13:32:37 +0200 Subject: [PATCH] "test sys_refresh_ref_cron.sh" --- bin/sys_refresh_ref_cron.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/sys_refresh_ref_cron.sh b/bin/sys_refresh_ref_cron.sh index a7e8e9a..06a04e1 100755 --- a/bin/sys_refresh_ref_cron.sh +++ b/bin/sys_refresh_ref_cron.sh @@ -148,7 +148,15 @@ function get_cronjobs #~ fi for CRONJOB in ${CRONJOBS} do - fct_message " - ${CRONJOB}" + COLOR="blanc" + MESSAGE=" - ${CRONJOB}" + if [[ "${CRONJOB}" =~ "*run-parts*" ]]; then + COLOR="cyan" + fi + if [[ "${CRONJOB}" =~ "*no crontab for*" ]]; then + COLOR="bleu" + fi + fct_message ${MESSAGE} -color ${COLOR} done IFS=${IFS_BAK} done