Browse Source

"test sys_refresh_ref_cron.sh"

master
Doug Le Tough 5 years ago
parent
commit
87059a0a59
  1. 16
      bin/sys_refresh_ref_cron.sh

16
bin/sys_refresh_ref_cron.sh

@ -150,12 +150,20 @@ function get_cronjobs @@ -150,12 +150,20 @@ function get_cronjobs
do
COLOR="blanc"
MESSAGE=" - ${CRONJOB}"
if [[ "${CRONJOB}" =~ *run-parts* ]]; then
case ${CRONJOB} in
"*run-parts*")
COLOR="cyan"
fi
if [[ "${CRONJOB}" =~ *no crontab for* ]]; then
;;
"*no crontab for*")
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}
done
IFS=${IFS_BAK}

Loading…
Cancel
Save