Update 00-global_var.sh

This commit is contained in:
Alexandre
2022-02-16 20:27:22 +01:00
committed by GitHub
parent 71e8fae59c
commit cc114a10d6

View File

@@ -11,6 +11,7 @@ JSONSOURCE="/data/options.json"
# Export keys as env variables
# echo "All addon options were exported as variables"
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
# spellcheck disable=SC2068
for KEYS in ${arr[@]}; do
# export key
VALUE=$(jq ."$KEYS" ${JSONSOURCE})