From 10a027390c43f98f42890b93135f4006682809fa Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Feb 2022 19:54:45 +0100 Subject: [PATCH] Update 00-global_var.sh --- .templates/00-global_var.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 80f8c297e..7b8353f64 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -16,7 +16,11 @@ for KEYS in ${arr[@]}; do VALUE=$(jq ."$KEYS" ${JSONSOURCE}) line="${KEYS}=${VALUE//[\"\']/}" # Use locally - if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi + if ! bashio::config.false "verbose" || [[ ! "$line" == *"PASS"* ]]; then + bashio::log.blue "$line" + else + bashio::log.blue "${KEYS}=******redacted******" + fi # Export the variable to run scripts line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true" if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi