1
0
mirror of https://github.com/skeeto/w64devkit.git synced 2025-08-06 11:42:39 +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 git stash pop
$dryrun docker rmi --no-prune $target || true $dryrun docker rmi --no-prune $target || true
} }
trap cleanup exit trap cleanup INT TERM
$dryrun git stash $dryrun git stash
for build in $builds; do for build in $builds; do
@@ -103,3 +103,5 @@ if [ $compact = yes ]; then
printf "%s$suffix.zip\n" $builds \ printf "%s$suffix.zip\n" $builds \
| xargs -I{} -P$(nproc) $dryrun advzip -z4 {} | xargs -I{} -P$(nproc) $dryrun advzip -z4 {}
fi fi
cleanup