fixed missing semicolon on the if statement

This commit is contained in:
2020-08-18 18:34:49 -04:00
parent f683187d3c
commit 97751911a1

View File

@@ -71,7 +71,7 @@ duplicacy -verbose -log backup -stats >> ${LOGFILE} 2>&1
duplicacy -verbose -log prune -keep 0:360 -keep 30:180 -keep 7:30 -keep 1:7 >> ${LOGFILE} 2>&1
# copy the backup to offsite but only if the backup id as passed in
if [ "${1}" == "--copyOffsite" ] || [ "${1}" == "-c" ] then
if [ "${1}" == "--copyOffsite" ] || [ "${1}" == "-c" ]; then
BACKUP_ID=$(awk '/"id"/{print substr($2,2,length($2)-3);exit}' /.duplicacy/preferences)
duplicacy -verbose -log copy -to GauntBackupCRO -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
fi