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

Allow "-with-texlive-full" suffix in version

This commit is contained in:
Jakob Ackermann 2023-07-27 17:38:13 +01:00
parent 269bf36b5b
commit b1e64786af
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)?$ ]]; then
if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.[0-9]+\.[0-9]+(-RC)?(-with-texlive-full)?$ ]]; then
echo "ERROR: invalid version '${IMAGE_VERSION}'"
exit 1
fi