extract_utils: Allow to interrupt the extraction

We want to cleanup our temporary files independently on the signal,
so just execute a trap on 0. This will ensure temporary files are
always removed and doesn't require any extra care when trapping
signals such as SIGINT that require an explicit exit call.

Change-Id: Ieff4f15c44a9ac9d5a543d14c140ebd72c0e7344
This commit is contained in:
Gabriele M 2017-10-11 12:55:51 +02:00 committed by Bruno Martins
parent 19ce2d3ad2
commit 6c3c2c0bca

View file

@ -37,7 +37,7 @@ function cleanup() {
rm -rf "${TMPDIR:?}"
}
trap cleanup EXIT INT TERM ERR
trap cleanup 0
#
# setup_vendor