From b8843a5d229a413eebf2f039698b0f0735ef1a9d Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sun, 11 Oct 2020 08:28:05 +1100 Subject: [PATCH] Fix broken cron mode --- bare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bare.sh b/bare.sh index 925818c..9b2c579 100755 --- a/bare.sh +++ b/bare.sh @@ -790,7 +790,7 @@ for f in $REPOSTOBACKUP; do elif [[ $mode == "restic" ]]; then if [[ $CMD == "go" ]]; then if [[ $CRONMODE -eq 1 ]]; then - {RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH 2>&1 | egrep "^(Added|processed|snapshot)" >> ${LOG} + ${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH 2>&1 | egrep "^(Added|processed|snapshot)" >> ${LOG} rv=${PIPESTATUS[0]} else [[ $VERBOSE -eq 1 ]] && log "debug: running: [${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH"