mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
checkapk: remove temporary dir on SIGINT and exit
This commit is contained in:
parent
51830efbb5
commit
015f0f69a8
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user