diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index fbba9240f..3ac078787 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -11,7 +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}) -for KEYS in "${arr[@]}"; do +for KEYS in ${arr[@]}; do # export key VALUE=$(jq ."$KEYS" ${JSONSOURCE}) line="${KEYS}=${VALUE//[\"\']/}" diff --git a/.templates/19-json_repair.sh b/.templates/19-json_repair.sh index 73bba3005..d6546afcf 100644 --- a/.templates/19-json_repair.sh +++ b/.templates/19-json_repair.sh @@ -22,7 +22,7 @@ if [ -f ${JSONTOCHECK} ]; then mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE}) # Check if all keys are still there, or add them - for KEYS in "${arr[@]}"; do + for KEYS in ${arr[@]}; do # Check if key exists KEYSTHERE=$(jq "has(\"${KEYS}\")" ${JSONTOCHECK}) if [ "$KEYSTHERE" != "true" ]; then diff --git a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh index 73bba3005..d6546afcf 100644 --- a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh +++ b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh @@ -22,7 +22,7 @@ if [ -f ${JSONTOCHECK} ]; then mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE}) # Check if all keys are still there, or add them - for KEYS in "${arr[@]}"; do + for KEYS in ${arr[@]}; do # Check if key exists KEYSTHERE=$(jq "has(\"${KEYS}\")" ${JSONTOCHECK}) if [ "$KEYSTHERE" != "true" ]; then