Update upgrade.sh

Allow the uplift of jails to test BETA and RC branches before release
This commit is contained in:
Jason Tubnor
2023-09-20 09:44:28 +10:00
committed by GitHub
parent 61e7084b33
commit aa688f7072

View File

@@ -89,7 +89,7 @@ jail_check() {
release_check() {
# Validate the release
if ! echo "${NEWRELEASE}" | grep -q "[0-9]\{2\}.[0-9]-RELEASE"; then
if ! echo "${NEWRELEASE}" | grep -q "[0-9]\{2\}.[0-9]-[RELEASE,BETA,RC]"; then
error_exit "${NEWRELEASE} is not a valid release."
fi
}