mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
wrong variable
This commit is contained in:
parent
2c31da31e4
commit
958aa017f8
@ -1509,14 +1509,14 @@ function task_automate {
|
||||
MESSAGE="Invalid Frequency Range"
|
||||
echo_fail
|
||||
exit_nochange
|
||||
elif [ $INPUT_AUTO_BACKUP-lt 1 ]
|
||||
elif [ $INPUT_AUTO_BACKUP -lt 1 ]
|
||||
then
|
||||
MESSAGE="No Backup Automation Scheduled"
|
||||
echo_warn
|
||||
else
|
||||
MESSAGE="Saving New Backup Automation"
|
||||
echo_stat
|
||||
(crontab -l 2>/dev/null; echo "* ${INPUT_AUTO_FREQ} * * * ${BASH_PATH} $HOME/${LOCAL_FOLDR}/${GS_FILENAME} backup >/dev/null 2>&1") | crontab -
|
||||
(crontab -l 2>/dev/null; echo "* ${INPUT_AUTO_BACKUP} * * * ${BASH_PATH} $HOME/${LOCAL_FOLDR}/${GS_FILENAME} backup >/dev/null 2>&1") | crontab -
|
||||
error_validate
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user