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}