From 016317ec6b12754b11990a5cb27a0935bfc3d8a9 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 25 Feb 2026 06:59:45 -0600 Subject: [PATCH] Remove extraneous file descriptor --- scripts/opt/backup-loop.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/opt/backup-loop.sh b/scripts/opt/backup-loop.sh index d56557f..a808922 100644 --- a/scripts/opt/backup-loop.sh +++ b/scripts/opt/backup-loop.sh @@ -464,9 +464,6 @@ restic() { return 1 fi - # Duplicate stdout to a first unused file descriptor (fd) 5 which will be used later - exec 5>&1 - if output="$(command timeout "${RESTIC_CAT_CONFIG_TIMEOUT}" restic cat config 2>&1 >/dev/null)"; then log INFO "Repository already initialized" log INFO "Checking for stale locks"