diff --git a/CHANGELOG.md b/CHANGELOG.md index f5067b1..1df4375 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2024-08-20 +### Fixed +- Fix unquoting of variables (e.g. `ALL_TEX_LIVE_DOCKER_IMAGES`) + ## 2024-08-13 ### Added - Updated default [`version`](https://github.com/overleaf/toolkit/blob/master/lib/config-seed/version) to `5.1.1`. diff --git a/lib/shared-functions.sh b/lib/shared-functions.sh index 5f8b923..59239eb 100644 --- a/lib/shared-functions.sh +++ b/lib/shared-functions.sh @@ -180,11 +180,11 @@ function check_sharelatex_env_vars() { function read_variable() { local name=$1 grep -E "^$name=" "$TOOLKIT_ROOT/config/variables.env" \ - | sed -r "s/^$name=([\"']*)(.+)\1*\$/\2/" + | sed -r "s/^$name=([\"']?)(.+)\1\$/\2/" } function read_configuration() { local name=$1 grep -E "^$name=" "$TOOLKIT_ROOT/config/overleaf.rc" \ - | sed -r "s/^$name=([\"']*)(.+)\1*\$/\2/" + | sed -r "s/^$name=([\"']?)(.+)\1\$/\2/" }