diff --git a/bare.sh b/bare.sh index 2acb223..a62c070 100755 --- a/bare.sh +++ b/bare.sh @@ -297,8 +297,8 @@ for f in $REPOSTOBACKUP; do ${RESTIC} stats $AUTHOPTS $CONNECTIONSOPTS 2>&1 >> ${LOG} rv=$? elif [[ $CMD == "diff" ]]; then - ${RESTIC} diff $AUTHOPTS $CONNECTIONSOPTS 2>&1 >> ${LOG} - rv=$? + log "Error: diff not supported in restic." + rv=1 elif [[ $CMD == "init" ]]; then # check whether it already exists first! ${RESTIC} stats $AUTHOPTS $CONNECTIONSOPTS >/dev/null 2>&1