From e2c50f00d477d2ce52012e712efc803dc46b44c9 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Fri, 5 Jan 2024 18:05:11 +0100 Subject: [PATCH] Avoid variable substitution at trap definition This should fix the temporary files removal. --- client/zzz_evobackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/zzz_evobackup b/client/zzz_evobackup index 6250403..6f4b111 100755 --- a/client/zzz_evobackup +++ b/client/zzz_evobackup @@ -632,7 +632,7 @@ main() { temp_files="${PIDFILE}" # shellcheck disable=SC2064 - trap "rm -f ${temp_files}" EXIT + trap 'rm -f ${temp_files}' EXIT # Update canary to keep track of each run update-evobackup-canary --who "${PROGNAME}"