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:
parent
0017263379
commit
6fffbfbc8a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue