From cc17a1cc798e838d4d40025e04b38fd77f37e589 Mon Sep 17 00:00:00 2001 From: psykose Date: Tue, 11 Jul 2023 13:37:24 +0000 Subject: [PATCH] checkapk: exit on trap signal otherwise it cleans up but the loop keeps going and just fails until end, just spamming the output --- checkapk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkapk.in b/checkapk.in index bc6dc52..8e7b777 100644 --- a/checkapk.in +++ b/checkapk.in @@ -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