Skip to content

Commit

Permalink
Set pipefail in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
elahrvivaz committed Oct 11, 2024
1 parent 17a537d commit 58bec85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/scripts/do-release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

set -e
set -u
set -o pipefail

cd "$(dirname "$0")/../.." || exit

Expand All @@ -12,7 +14,7 @@ where :
exit 1
}

if [[ ($# -ne 0) || ( $1 == "--help") || $1 == "-h" ]]; then
if [[ ($# -ne 0) ]]; then
usage
fi

Expand All @@ -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")"
Expand Down

0 comments on commit 58bec85

Please sign in to comment.