Hide both pass* and PASS*

https://github.com/alexbelgium/hassio-addons/issues/1587
This commit is contained in:
Alexandre
2024-10-06 15:47:11 +02:00
committed by GitHub
parent 3d0c23ec08
commit f532c0e1bc

View File

@@ -54,7 +54,7 @@ for KEYS in "${arr[@]}"; do
VALUE="$secret"
fi
# text
if bashio::config.false "verbose" || [[ "${KEYS}" == *"PASS"* ]]; then
if bashio::config.false "verbose" || [[ "${KEYS,,}" == *"pass"* ]]; then
bashio::log.blue "${KEYS}=******"
else
bashio::log.blue "$line"