Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hack/update-istio-in-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ fi

echo "Extracting the latest two 'version' values from $YAML_FILE..."

# Disable pipefail temporarily to avoid SIGPIPE error from head
set +o pipefail
LATEST_VERSIONS=$(yq '.versions[] | select(.version) | .version' "$YAML_FILE" | head -n 2)
set -o pipefail
if [ -z "$LATEST_VERSIONS" ]; then
echo "No versions with a 'version' property found."
exit 1
Expand Down
Loading