Append pidfile to temp_files
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
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:
parent
491c839014
commit
60fc49ad0f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue