mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -11,6 +11,7 @@ JSONSOURCE="/data/options.json"
|
|||||||
# Export keys as env variables
|
# Export keys as env variables
|
||||||
# echo "All addon options were exported as variables"
|
# echo "All addon options were exported as variables"
|
||||||
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
|
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
|
||||||
|
# spellcheck disable=SC2068
|
||||||
for KEYS in ${arr[@]}; do
|
for KEYS in ${arr[@]}; do
|
||||||
# export key
|
# export key
|
||||||
VALUE=$(jq ."$KEYS" ${JSONSOURCE})
|
VALUE=$(jq ."$KEYS" ${JSONSOURCE})
|
||||||
|
|||||||
Reference in New Issue
Block a user