diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-09-24 17:34:31 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 10:52:13 +0000 |
commit | 015f0f69a873f47cfdaa83ae4b22c800eb11308f (patch) | |
tree | c4ec0842f8f52643a79ee96f670a8c8378f0db3b /checkapk.in | |
parent | 51830efbb5e6a07f0ec93e6c59c12680b518ca56 (diff) | |
download | abuild-015f0f69a873f47cfdaa83ae4b22c800eb11308f.tar.gz abuild-015f0f69a873f47cfdaa83ae4b22c800eb11308f.tar.bz2 abuild-015f0f69a873f47cfdaa83ae4b22c800eb11308f.tar.xz abuild-015f0f69a873f47cfdaa83ae4b22c800eb11308f.zip |
checkapk: remove temporary dir on SIGINT and exit
Diffstat (limited to 'checkapk.in')
-rw-r--r-- | checkapk.in | 3 |
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" |