From d8f24b886239167682727abcff6cf8e65245fdf5 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 4 Jan 2023 16:49:47 +0100 Subject: [PATCH] try to fix the borg check Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 069a9e14..9c2073e7 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -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