ignore warnings due to changed files

This commit is contained in:
layman 2022-09-19 07:32:52 +02:00
parent 67dfcf5f7a
commit 949fefaf35

View file

@ -62,6 +62,7 @@ if [[ -n "${MAC}" ]] ; then
fi
fi
set +e
#wordsplitting is needed for arguments
#shellcheck disable=SC2046
nice ionice -c 3 borg create --stats \
@ -75,7 +76,15 @@ nice ionice -c 3 borg create --stats \
"${MYREPO}::${SNAPSHOT}" \
"${BORG_BACKUP_DIRS[@]}"
echo RetVal = $?
RetVal=$?
echo "RetVal = $RetVal"
if [[ $RetVal != "0" && $RetVal != "1" ]] ; then
exit "$RetVal"
fi
set -e
if [[ "${APPENDONLY}" != "YES" ]] ; then
time borg prune -v "$MYREPO" "${BORG_PRUNEARG[@]}"