mirror of
https://github.com/skeeto/w64devkit.git
synced 2025-08-05 00:22:07 +03:00
More robustly clean up in multibuild.sh
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user