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

checkapk: remove temporary dir on SIGINT and exit

parent 51830efb
...@@ -47,6 +47,7 @@ fi ...@@ -47,6 +47,7 @@ fi
startdir="$PWD" startdir="$PWD"
tmpdir=$(mktemp -d -t checkpkg-script.XXXXXX) tmpdir=$(mktemp -d -t checkpkg-script.XXXXXX)
trap "rm -rf '$tmpdir'" INT EXIT
cd "$tmpdir" || die "failed to create temp dir" cd "$tmpdir" || die "failed to create temp dir"
for i in $pkgname $subpackages; do for i in $pkgname $subpackages; do
...@@ -91,5 +92,3 @@ for i in $pkgname $subpackages; do ...@@ -91,5 +92,3 @@ for i in $pkgname $subpackages; do
msg "No soname differences for $_pkgname." msg "No soname differences for $_pkgname."
fi fi
done done
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