Skip to content

Commit

Permalink
tools: Handle v-prefixed versions in stable-tag.sh (#28455)
Browse files Browse the repository at this point in the history
If the GH version tag has the "v" prefix, that should be stripped before
comparing it with the SVN version and readme versions.
  • Loading branch information
anomiex authored Jan 18, 2023
1 parent 34e6cf4 commit 1dbbc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/stable-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if ! jq -e '.' <<<"$JSON" &>/dev/null; then
die "Failed to retrieve JSON data from https://api.github.com/repos/$MIRROR/releases/latest"
fi

GH_LATEST=$(jq -r '.tag_name' <<<"$GH_JSON")
GH_LATEST=$(jq -r '.tag_name | ltrimstr( "v" )' <<<"$GH_JSON")

yellow "Current stable tag: ${CURRENT_STABLE_VERSION}"
yellow "Latest tag in SVN: ${SVN_LATEST}"
Expand Down

0 comments on commit 1dbbc11

Please sign in to comment.