From 6fffbfbc8af6b1194b977582fe3cb308b550f864 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 7 Nov 2019 22:19:12 +0100 Subject: 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 --- offload-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offload-build b/offload-build index 078796a..688adf3 100755 --- a/offload-build +++ b/offload-build @@ -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 -- cgit v1.2.3-70-g09d2