Avoid variable substitution at trap definition
All checks were successful
gitea/evobackup/pipeline/head This commit looks good

This should fix the temporary files removal.
This commit is contained in:
Alexis Ben Miloud--Josselin 2024-01-05 18:05:11 +01:00
parent 50b5af6095
commit e2c50f00d4

View file

@ -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}"