"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
COLOR="blanc"
MESSAGE=" - ${CRONJOB}"
case ${CRONJOB} in
"'*run-parts*'")
if [ $(echo "${CRONJOB}" | grep "run-parts" | wc -l) -eq 1 ]; then
COLOR="cyan"
;;
"'*no crontab for*'")
elif [ $(echo "${CRONJOB}" | grep "no crontab for" | wc -l) -eq 1 ]; then
COLOR="bleu"
;;
esac
#~ if [[ "${CRONJOB}" =~ *run-parts* ]]; then
#~ COLOR="cyan"
#~ fi
#~ if [[ "${CRONJOB}" =~ *no crontab for* ]]; then
#~ COLOR="bleu"
#~ fi
fi
fct_message ${MESSAGE} -color ${COLOR}
done
IFS=${IFS_BAK}