From d0e521892ed9ee52fcd1c6de8d1e92df0ba4494e Mon Sep 17 00:00:00 2001 From: Alexandre Date: Thu, 17 Feb 2022 15:32:29 +0100 Subject: [PATCH] Update 00-global_var.sh --- .templates/00-global_var.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index d8d861703..ee52e91ad 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -10,14 +10,14 @@ JSONSOURCE="/data/options.json" # Export keys as env variables # echo "All addon options were exported as variables" -mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE}) +mapfile -t arr < <(jq -r 'keys[]' "${JSONSOURCE}") for KEYS in "${arr[@]}"; do # export key - VALUE=$(jq ."$KEYS" ${JSONSOURCE}) + VALUE=$(jq ."$KEYS" "${JSONSOURCE}") line="${KEYS}=${VALUE//[\"\']/}" # Use locally - if bashio::config.false "verbose" || [[ "${KEYS}" == *"PASS"* ]]; then + if bashio::config.false "verbose" || [[ "${KEYS}" == *"PASS"* ]]; then bashio::log.blue "${KEYS}=******" else bashio::log.blue "$line"