1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 07:18:06 +02:00

Add support for numbered release candidates like 4.1.0-RC1/4.1.0-RC2

This commit is contained in:
Jakob Ackermann 2023-08-18 08:24:47 +01:00
parent 24fef2c0da
commit 2a853782d3
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A

View file

@ -10,7 +10,7 @@ function read_config() {
function read_image_version() {
IMAGE_VERSION="$(head -n 1 "$TOOLKIT_ROOT/config/version")"
if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.[0-9]+\.[0-9]+(-RC)?(-with-texlive-full)?$ ]]; then
if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.[0-9]+\.[0-9]+(-RC[0-9]*)?(-with-texlive-full)?$ ]]; then
echo "ERROR: invalid version '${IMAGE_VERSION}'"
exit 1
fi