offload-build: catch more signals to be sure SRCPKGDEST gets cleaned

It may be not enough to just listen on EXIT depending on the shell used
so lets make sure we clean up SRCPKGDEST by listening to more sigs.

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Levente Polyak 2019-11-07 22:19:12 +01:00
parent 0017263379
commit 6fffbfbc8a
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ fi
archbuild_cmd=("${repo}${arch:+-$arch}-build" "$@")
trap 'rm -rf $SRCPKGDEST' EXIT
trap 'rm -rf $SRCPKGDEST' EXIT INT TERM QUIT
# Use a source-only tarball as an intermediate to transfer files. This
# guarantees the checksums are okay, and guarantees that all needed files are