Update 00-global_var.sh

This commit is contained in:
Alexandre
2021-12-07 19:00:02 +01:00
committed by GitHub
parent 197ac415a5
commit 65cf5dbf5b

View File

@@ -15,7 +15,7 @@ for KEYS in ${arr[@]}; do
VALUE=$(jq .$KEYS ${JSONSOURCE})
line="${KEYS}=${VALUE//[\"\']/}"
# Use locally
bashio::log.blue "$line" 2>/dev/null || echo "$line"
bashio::log.blue "$line"
export $line
# Export the variable to run scripts
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"