mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 17:51:49 +02:00
Redact password
This commit is contained in:
@@ -16,10 +16,10 @@ for KEYS in ${arr[@]}; do
|
|||||||
VALUE=$(jq ."$KEYS" ${JSONSOURCE})
|
VALUE=$(jq ."$KEYS" ${JSONSOURCE})
|
||||||
line="${KEYS}=${VALUE//[\"\']/}"
|
line="${KEYS}=${VALUE//[\"\']/}"
|
||||||
# Use locally
|
# Use locally
|
||||||
if ! bashio::config.false "verbose" || [[ ! "$line" == *"PASS"* ]]; then
|
if bashio::config.false "verbose" || [[ "$line" == *"PASS"* ]]; then
|
||||||
bashio::log.blue "$line"
|
|
||||||
else
|
|
||||||
bashio::log.blue "${KEYS}=******redacted******"
|
bashio::log.blue "${KEYS}=******redacted******"
|
||||||
|
else
|
||||||
|
bashio::log.blue "$line"
|
||||||
fi
|
fi
|
||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
|
line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
|
||||||
|
|||||||
Reference in New Issue
Block a user