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

Move config section out by one indent level

This commit is contained in:
Shane Kilkelly 2020-06-17 09:42:46 +01:00
parent 84f162ba1f
commit 67500e9e59

View file

@ -127,14 +127,14 @@ function check_config_files() {
)
for config_file in "${config_files[@]}"
do
print_point 1 "$config_file"
print_point 0 "$config_file"
if [[ ! -f "$config_file" ]]; then
print_point 2 "status: MISSING !"
print_point 1 "status: MISSING !"
add_warning "configuration file $config_file not found"
else
print_point 2 "status: present"
print_point 1 "status: present"
if [[ "$config_file" == "config/overleaf.rc" ]]; then
print_point 2 "values:"
print_point 1 "values:"
# Load vars from the rc file, prefixed with 'RC_ '
# shellcheck disable=SC1090
source <(
@ -144,13 +144,13 @@ function check_config_files() {
awk '{print "RC_" $0}' # prefix with 'RC_'
)
if [[ "${RC_IMAGE:-null}" != "null" ]]; then
print_point 3 "IMAGE: $RC_IMAGE"
print_point 2 "IMAGE: $RC_IMAGE"
else
print_point 2 "IMAGE: MISSING !"
add_warning "rc file, IMAGE not set"
fi
if [[ "${RC_SHARELATEX_DATA_PATH:-null}" != "null" ]]; then
print_point 3 "SHARELATEX_DATA_PATH: $RC_SHARELATEX_DATA_PATH"
print_point 2 "SHARELATEX_DATA_PATH: $RC_SHARELATEX_DATA_PATH"
else
print_point 2 "SHARELATEX_DATA_PATH: MISSING !"
add_warning "rc file, SHARELATEX_DATA_PATH not set"