Append pidfile to temp_files
All checks were successful
gitea/evobackup/pipeline/head This commit looks good

This commit fixes a bug where evobackup does not remove all its
temporary files.
This commit is contained in:
Alexis Ben Miloud--Josselin 2024-01-04 16:33:17 +01:00
parent 491c839014
commit 60fc49ad0f

View file

@ -629,7 +629,7 @@ main() {
# Initialize a list of files to delete at exit
# Any file added to the list will also be deleted at exit
temp_files="${PIDFILE}"
temp_files="${temp_files} ${PIDFILE}"
# shellcheck disable=SC2064
trap "rm -f ${temp_files}" EXIT