Skip to content

Commit

Permalink
chore: fix version sh pipe exit (#5816)
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <slonka@users.noreply.github.com>
  • Loading branch information
slonka authored Jan 24, 2023
1 parent fefdbc7 commit 537cccd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/releases/version.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail

function envoy_version() {
set -o errexit
set -o pipefail
set -o nounset
# Returns Envoy version by ENVOY_TAG:
# - if ENVOY_TAG is a real git tag like 'v1.20.0' then the version is equal to '1.20.0' (without the first letter 'v').
# - if ENVOY_TAG is a commit hash then the version will look like '1.20.1-dev-b16d390f'
Expand All @@ -21,6 +21,9 @@ function envoy_version() {
else
echo "${ENVOY_VERSION}-${ENVOY_TAG:0:8}"
fi
set +o errexit
set +o pipefail
set +o nounset
}

function version_info() {
Expand Down

0 comments on commit 537cccd

Please sign in to comment.