Update 00-global_var.sh

This commit is contained in:
Alexandre
2022-01-14 21:46:49 +01:00
committed by GitHub
parent f6125dace5
commit 8a9997a5de

View File

@@ -10,7 +10,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})
for KEYS in "${arr[@]}"; do
for KEYS in ${arr[@]}; do
# export key
VALUE=$(jq ."$KEYS" ${JSONSOURCE})
line="${KEYS}=${VALUE//[\"\']/}"