From e7eb20ef96ad6d497f11cc058652e0a9e1875a43 Mon Sep 17 00:00:00 2001 From: zhkgo <39695505+zhkgo@users.noreply.github.com> Date: Wed, 17 Sep 2025 02:20:08 +0800 Subject: [PATCH] Fix regex in read_configuration function For MacOS for sed command MacOs Output like MONGO_VERSION=7.0 RightOut Is 7.0 --- 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 a35d17c7..48abac3f 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/" + | cut -d '=' -f 2 }