Redact password

This commit is contained in:
Alexandre
2022-02-15 10:03:54 +01:00
committed by GitHub
parent 54bbaca31e
commit 66b8cb07ec

View File

@@ -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"