mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Do not show arrays content
https://github.com/alexbelgium/hassio-addons/issues/1742#issuecomment-2617938514
This commit is contained in:
@@ -27,7 +27,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
VALUE=$(jq ."$KEYS" "${JSONSOURCE}")
|
VALUE=$(jq ."$KEYS" "${JSONSOURCE}")
|
||||||
# Check if the value is an array
|
# Check if the value is an array
|
||||||
if [[ "$VALUE" == \[* ]]; then
|
if [[ "$VALUE" == \[* ]]; then
|
||||||
bashio::log.warning "$VALUE is an array, skipping"
|
bashio::log.warning "One of your option is an array, skipping"
|
||||||
else
|
else
|
||||||
# Continue for single values
|
# Continue for single values
|
||||||
VALUE="${VALUE//[\"\']/}"
|
VALUE="${VALUE//[\"\']/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user