From 1c64bf5fe38bda8eaf97454ad68b463fbee89725 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 13 Apr 2025 17:37:34 -0700 Subject: [PATCH] fix bin/up with mongo change with #270 the prefix of the configuration shouldn't be in the return value. On a new checkout I ran into ``` --------------------- ERROR ----------------------- Invalid MONGO_VERSION: MONGO_VERSION=6.0 MONGO_VERSION must start with the actual major version of mongo, followed by a dot. Example: MONGO_IMAGE=my.dockerhub.com/custom-mongo MONGO_VERSION=6.0-custom --------------------- ERROR ----------------------- ``` removing `\1` fixed it. --- lib/shared-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared-functions.sh b/lib/shared-functions.sh index a35d17c..135e035 100644 --- a/lib/shared-functions.sh +++ b/lib/shared-functions.sh @@ -223,5 +223,5 @@ function read_variable() { function read_configuration() { local name=$1 grep -E "^$name=" "$TOOLKIT_ROOT/config/overleaf.rc" \ - | sed -r "s/^$name=([\"']?)(.+)\1\$/\2/" + | sed -r "s/^$name=([\"']?)(.+)\$/\2/" }