checkapk: exit on trap signal

otherwise it cleans up but the loop keeps going and just fails until end,
just spamming the output
This commit is contained in:
psykose 2023-07-11 13:37:24 +00:00
parent 617df473b0
commit cc17a1cc79
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ fi
startdir="$PWD"
tmpdir=$(mktemp -d -t checkpkg-script.XXXXXX)
trap "rm -rf '$tmpdir'" INT EXIT
trap "rm -rf '$tmpdir'; exit" INT EXIT
cd "$tmpdir" || die "failed to create temp dir"
# storage for downloaded/copied apks