1
0
mirror of https://github.com/skeeto/w64devkit.git synced 2025-07-31 15:04:21 +03:00

More robustly clean up in multibuild.sh

This commit is contained in:
Christopher Wellons
2021-10-10 20:32:07 -04:00
parent 0a2e6106f0
commit 9190a3d62d

View File

@ -79,7 +79,7 @@ cleanup() {
$dryrun git stash pop
$dryrun docker rmi --no-prune $target || true
}
trap cleanup exit
trap cleanup INT TERM
$dryrun git stash
for build in $builds; do
@ -103,3 +103,5 @@ if [ $compact = yes ]; then
printf "%s$suffix.zip\n" $builds \
| xargs -I{} -P$(nproc) $dryrun advzip -z4 {}
fi
cleanup