Correct return code for forget command

This commit is contained in:
lobaro-demo
2016-11-29 10:01:50 +00:00
parent 2cff3da4d5
commit 882b98003a

View File

@@ -14,7 +14,7 @@ fi
if [ -n "${RESTIC_FORGET_ARGS}" ]; then
echo "Forget about old snapshots based on RESTIC_FORGET_ARGS = ${RESTIC_FORGET_ARGS}" >> /var/log/cron.log
restic forget ${RESTIC_FORGET_ARGS} >> /var/log/backup-last.log 2>&1
rc=$?
if [[ $rc == 0 ]]; then
echo "Forget Successfull" >> /var/log/cron.log
else