release: fix RC_VERSION for release script

The release candidate -rc1 has version "1.y.90", -rc2 has "1.y.91", and so
on. Fix the script.
This commit is contained in:
Thomas Haller 2020-06-28 18:33:12 +02:00
parent 8e9e6fd024
commit 7f93fd8e7b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -183,7 +183,7 @@ case "$RELEASE_MODE" in
[ "$CUR_BRANCH" == master ] || die "devel release can only be on master"
else
[ "${VERSION_ARR[2]}" -ge 90 ] || die "rc release must have a micro version larger than ${VERSION_ARR[0]}.90 but current version is $VERSION_STR"
RC_VERSION="$((${VERSION_ARR[2]} - 90))"
RC_VERSION="$((${VERSION_ARR[2]} - 88))"
[ "$CUR_BRANCH" == "nm-${VERSION_ARR[0]}-$((${VERSION_ARR[1]} + 1))" ] || die "devel release can only be on \"nm-${VERSION_ARR[0]}-$((${VERSION_ARR[1]} + 1))\" branch"
fi
;;