Redact password

This commit is contained in:
Alexandre authored and GitHub committed 2022-02-15 10:03:54 +01:00
1 parent 54bbaca31e
commit 66b8cb07ec
1 file changed
+3 -3
+3 -3
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"