From 97751911a1ca34b39db068ddc855896b0140c7fa Mon Sep 17 00:00:00 2001 From: jgaunt Date: Tue, 18 Aug 2020 18:34:49 -0400 Subject: [PATCH] fixed missing semicolon on the if statement --- duplicacy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicacy.sh b/duplicacy.sh index 13ab29a..e81ebc9 100644 --- a/duplicacy.sh +++ b/duplicacy.sh @@ -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