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

Add support for -RC suffix in version numbers

This commit is contained in:
Miguel Serrano 2021-07-02 13:02:10 +02:00
parent ff69296557
commit aafdb21346

View file

@ -29,7 +29,7 @@ function __main__() {
local REDIS_PORT="6379"
if [[ ! "$SHARELATEX_IMAGE_VERSION" \
=~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
=~ ^[0-9]+\.[0-9]+\.[0-9]+(-RC)?$ ]]; then
echo "ERROR: invalid version '${SHARELATEX_IMAGE_VERSION}'"
exit 1
fi