"test sys_refresh_ref_cron.sh"

This commit is contained in:
Doug Le Tough 2017-07-24 13:48:43 +02:00
parent 5a69c7769f
commit adac492728

View File

@ -150,20 +150,11 @@ function get_cronjobs
do do
COLOR="blanc" COLOR="blanc"
MESSAGE=" - ${CRONJOB}" MESSAGE=" - ${CRONJOB}"
case ${CRONJOB} in if [ $(echo "${CRONJOB}" | grep "run-parts" | wc -l) -eq 1 ]; then
"'*run-parts*'")
COLOR="cyan" COLOR="cyan"
;; elif [ $(echo "${CRONJOB}" | grep "no crontab for" | wc -l) -eq 1 ]; then
"'*no crontab for*'")
COLOR="bleu" COLOR="bleu"
;; fi
esac
#~ if [[ "${CRONJOB}" =~ *run-parts* ]]; then
#~ COLOR="cyan"
#~ fi
#~ if [[ "${CRONJOB}" =~ *no crontab for* ]]; then
#~ COLOR="bleu"
#~ fi
fct_message ${MESSAGE} -color ${COLOR} fct_message ${MESSAGE} -color ${COLOR}
done done
IFS=${IFS_BAK} IFS=${IFS_BAK}