mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 09:11:50 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -15,7 +15,7 @@ for KEYS in ${arr[@]}; do
|
|||||||
VALUE=$(jq .$KEYS ${JSONSOURCE})
|
VALUE=$(jq .$KEYS ${JSONSOURCE})
|
||||||
line="${KEYS}=${VALUE//[\"\']/}"
|
line="${KEYS}=${VALUE//[\"\']/}"
|
||||||
# Use locally
|
# Use locally
|
||||||
bashio::log.blue "$line" 2>/dev/null || echo "$line"
|
bashio::log.blue "$line"
|
||||||
export $line
|
export $line
|
||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
|
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
|
||||||
|
|||||||
Reference in New Issue
Block a user