mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-02-17 09:23:56 +00:00
Correct return code for forget command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user