summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--checkapk.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/checkapk.in b/checkapk.in
index b5cfb48..334bbb9 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -47,6 +47,7 @@ fi
startdir="$PWD"
tmpdir=$(mktemp -d -t checkpkg-script.XXXXXX)
+trap "rm -rf '$tmpdir'" INT EXIT
cd "$tmpdir" || die "failed to create temp dir"
for i in $pkgname $subpackages; do
@@ -91,5 +92,3 @@ for i in $pkgname $subpackages; do
msg "No soname differences for $_pkgname."
fi
done
-
-msg "Files saved to $tmpdir"