mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 07:18:06 +02:00
Merge pull request #281 from overleaf/jpa-fix-unquoting
Fix unquoting of variables
This commit is contained in:
commit
3b6cf6d736
2 changed files with 6 additions and 2 deletions
|
@ -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`.
|
||||
|
|
|
@ -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/"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue