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:
parent
cb77f8d667
commit
629df041d9
2
www/docs/static/run
vendored
2
www/docs/static/run
vendored
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user