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

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.
This commit is contained in:
David 2025-04-13 17:37:34 -07:00 committed by GitHub
parent 895fe73941
commit 1c64bf5fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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/"
}