From c46a461ee10dafb9cb2f6c6a20085cb5749c49c7 Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Mon, 24 Jul 2017 13:36:53 +0200 Subject: [PATCH] "test sys_refresh_ref_cron.sh" --- bin/sys_refresh_ref_cron.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sys_refresh_ref_cron.sh b/bin/sys_refresh_ref_cron.sh index 52ae773..4df7cf3 100755 --- a/bin/sys_refresh_ref_cron.sh +++ b/bin/sys_refresh_ref_cron.sh @@ -150,10 +150,10 @@ function get_cronjobs do COLOR="blanc" MESSAGE=" - ${CRONJOB}" - if [[ "${CRONJOB}" == "*run-parts*" ]]; then + if [[ "${CRONJOB}" =~ *run-parts* ]]; then COLOR="cyan" fi - if [[ "${CRONJOB}" == "*no crontab for*" ]]; then + if [[ "${CRONJOB}" =~ *no crontab for* ]]; then COLOR="bleu" fi fct_message ${MESSAGE} -color ${COLOR}