From a7b9c95c6c5262cefadfefb031e3efe50f0bede8 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 6 Nov 2025 11:40:14 +0100 Subject: [PATCH] borg-init: remove unnecessary delete logic Signed-off-by: Simon L. --- Containers/borgbackup/backupscript.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 41c05724..50815f38 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -138,11 +138,6 @@ if [ "$BORG_MODE" = backup ]; then NEW_REPOSITORY=1 if ! borg init --debug --encryption=repokey-blake2; then echo "Could not initialize borg repository." - if [ -z "$BORG_REMOTE_REPO" ]; then - # Originally we checked for presence of the config file instead of calling `borg info`. Likely `borg info` - # will error on a partially initialized repo, so this line is probably no longer necessary - rm -f "$BORG_BACKUP_DIRECTORY/config" - fi exit 1 fi