try to fix the borg check

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-01-04 16:49:47 +01:00
parent db9f88945c
commit d8f24b8862

View file

@ -370,7 +370,7 @@ if [ "$BORG_MODE" = "check-repair" ]; then
echo "Checking the backup integrity and repairing it..."
# Perform the check-repair
if ! borg check -v --repair "$BORG_BACKUP_DIRECTORY"; then
if ! echo YES | borg check -v --repair "$BORG_BACKUP_DIRECTORY"; then
echo "Some errors were found while checking and repairing the backup integrity!"
exit 1
fi