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

Verify version before continuing

This commit is contained in:
Shane Kilkelly 2020-07-09 13:36:40 +01:00
parent 19d102febb
commit e91592687e

View file

@ -9,6 +9,12 @@ function __main__() {
MONGO_IMAGE="mongo:3.6"
REDIS_IMAGE="redis:5.0"
if [[ ! "$SHARELATEX_IMAGE_VERSION" \
=~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "ERROR: invalid version '${SHARELATEX_IMAGE_VERSION}'"
exit 1
fi
# Load vars from the rc file
# shellcheck disable=SC1090
source "$RC_FILE"