From 58bec85e7a7c856e2d79c119db387b03f65b512a Mon Sep 17 00:00:00 2001 From: Emilio Lahr-Vivaz Date: Fri, 11 Oct 2024 11:07:33 -0400 Subject: [PATCH] Set pipefail in release script --- build/scripts/do-release.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/scripts/do-release.sh b/build/scripts/do-release.sh index 99c475e4ffd2..1921c61ad10b 100755 --- a/build/scripts/do-release.sh +++ b/build/scripts/do-release.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e +set -u +set -o pipefail cd "$(dirname "$0")/../.." || exit @@ -12,7 +14,7 @@ where : exit 1 } -if [[ ($# -ne 0) || ( $1 == "--help") || $1 == "-h" ]]; then +if [[ ($# -ne 0) ]]; then usage fi @@ -30,6 +32,7 @@ readPomVersion() { } copyReleaseArtifacts() { + echo "Copying release artifacts" while IFS= read -r -d '' file; do pushd "$(dirname "$file")" >/dev/null gpg --armor --detach-sign "$(basename "$file")"