Merge pull request #5284 from gkurz/fix-release-script

tools: release: fix bogus version check
This commit is contained in:
Bin Liu 2022-09-29 20:46:11 +08:00 committed by GitHub
commit 68f6dbb202
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