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")"