Cronexist=0

This commit is contained in:
Michael Stanclift 2020-06-22 10:30:49 -05:00
parent e27a93905a
commit 5bb0a1012a

View File

@ -1168,12 +1168,13 @@ function task_automate {
import_gs import_gs
CRON_EXIST='0'
CRON_CHECK=$(crontab -l | grep -q "${GS_FILENAME}" && echo '1' || echo '0') CRON_CHECK=$(crontab -l | grep -q "${GS_FILENAME}" && echo '1' || echo '0')
if [ ${CRON_CHECK} == 1 ] if [ ${CRON_CHECK} == 1 ]
then then
MESSAGE="Automation Task Already Exists" MESSAGE="Automation Task Already Exists"
echo_info echo_info
CRON_EXIST="1" CRON_EXIST='1'
fi fi
MESSAGE="Sync Frequency in Minutes (0-30)" MESSAGE="Sync Frequency in Minutes (0-30)"