+
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lib/shared-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,16 @@ 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/"
(
source "$TOOLKIT_ROOT/config/variables.env"
echo "${!name:-}"
)
}

function read_configuration() {
local name=$1
grep -E "^$name=" "$TOOLKIT_ROOT/config/overleaf.rc" \
| sed -r "s/^$name=([\"']?)(.+)\1\$/\2/"
(
source "$TOOLKIT_ROOT/config/overleaf.rc"
echo "${!name:-}"
)
}
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载