Merge pull request #5286 from gkurz/backport-3.0/5284-release-script

tools: release: fix bogus version check
This commit is contained in:
Greg Kurz 2022-09-29 17:11:23 +02:00 committed by GitHub
commit 619d1b487f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ bump_repo() {
need_commit=true
fi
elif [ "${new_version}" != *"rc"* ]; then
elif [[ ! "${new_version}" =~ "rc" ]]; then
## We are on a stable branch and creating new stable releases.
## Need to change kata-deploy / kata-cleanup to use the stable tags.
if [[ "${version_to_replace}" =~ "rc" ]]; then