Skip to content

Commit

Permalink
Merge pull request #19011 from ivanvc/fix-release-script-for-main-bra…
Browse files Browse the repository at this point in the history
…nch-releases

release: Allow "v" prefix when specifying release version
  • Loading branch information
ahrtr authored Dec 6, 2024
2 parents 27a7c1a + e1e1787 commit 654495c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ help() {
}

main() {
VERSION=$1
if [[ ! "${VERSION}" =~ [0-9]+.[0-9]+.[0-9]+ ]]; then
# Allow to receive the version with the "v" prefix, i.e. v3.6.0.
VERSION=${1#v}
if [[ ! "${VERSION}" =~ ^[0-9]+.[0-9]+.[0-9]+ ]]; then
log_error "Expected 'version' param of the form '<major-version>.<minor-version>.<patch-version>' but got '${VERSION}'"
exit 1
fi
Expand Down

0 comments on commit 654495c

Please sign in to comment.