From 66b8cb07ecbfea5bcff5880ad6d60f529440ba5b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Feb 2022 10:03:54 +0100 Subject: [PATCH] Redact password --- .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 7b8353f64..3490c431f 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -16,10 +16,10 @@ for KEYS in ${arr[@]}; do VALUE=$(jq ."$KEYS" ${JSONSOURCE}) line="${KEYS}=${VALUE//[\"\']/}" # Use locally - if ! bashio::config.false "verbose" || [[ ! "$line" == *"PASS"* ]]; then - bashio::log.blue "$line" - else + if bashio::config.false "verbose" || [[ "$line" == *"PASS"* ]]; then bashio::log.blue "${KEYS}=******redacted******" + else + bashio::log.blue "$line" fi # Export the variable to run scripts line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"