Commit 015f0f69 authored by Sören Tempel's avatar Sören Tempel Committed by Natanael Copa
Browse files

checkapk: remove temporary dir on SIGINT and exit

parent 51830efb
......@@ -47,6 +47,7 @@ fi
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."
msg "Files saved to $tmpdir"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment