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:
parent
19d102febb
commit
e91592687e
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue