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"