From d7c6b62271401adf3f14a9a4c4f41267812b019c Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 22 Jun 2020 10:10:24 -0500 Subject: [PATCH] 1-30 --- CHANGELOG.md | 1 + gravity-sync.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b85d2e..8996009 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ There is nothing really sexy here, but a lot of changes under the covers to impr #### 1.8.3 - Simplified method for input of automation frequency via crontab. +- Removes existing automation task from crontab, if it exists. - Adds dev tag to version output. #### 1.8.2 diff --git a/gravity-sync.sh b/gravity-sync.sh index ec9510c..2e52d39 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1193,11 +1193,11 @@ function task_automate { # MESSAGE="12 = Every 05 Minutes" # echo -e "++++++ ${MESSAGE}" - MESSAGE="Sync Frequency in Minutes (60 max)" + MESSAGE="Sync Frequency in Minutes (1-30)" echo_need read INPUT_AUTO_FREQ - if [ $INPUT_AUTO_FREQ -gt 60 ] + if [ $INPUT_AUTO_FREQ -gt 30 ] # then # AUTO_FREQ='60' # elif [ $INPUT_AUTO_FREQ == 2 ] @@ -1216,6 +1216,10 @@ function task_automate { MESSAGE="Invalid Input" echo_fail exit_nochange + elif [ $INPUT_AUTO_FREQ -lt 1 ] + MESSAGE="Invalid Input" + echo_fail + exit_nochange else if [ CRON_EXIST == 1 ] then