1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: do runner cleanups also on SIGINT and SIGTERM (#4133)

Behavior of the `EXIT` condition is not consistent between shells with
regards to abnormal exits and signals. This cleanup should occur always.

https://austingroupbugs.net/view.php?id=621
This commit is contained in:
Ville Skyttä 2023-06-21 23:08:08 +03:00 committed by GitHub
parent cb77f8d667
commit 629df041d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
www/docs/static/run vendored
View File

@ -22,7 +22,7 @@ test -z "$VERSION" && {
TMP_DIR="$(mktemp -d)"
# shellcheck disable=SC2064 # intentionally expands here
trap "rm -rf \"$TMP_DIR\"" EXIT
trap "rm -rf \"$TMP_DIR\"" EXIT INT TERM
OS="$(uname -s)"
ARCH="$(uname -m)"
test "$ARCH" = "aarch64" && ARCH="arm64"