From 9f9c72fedc8bf809ac3d671d0bc18212545d891f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 16 Feb 2022 20:39:20 +0100 Subject: [PATCH] Update 00-global_var.sh --- .templates/00-global_var.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 5057f7f29..d8d861703 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -11,8 +11,8 @@ 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 + +for KEYS in "${arr[@]}"; do # export key VALUE=$(jq ."$KEYS" ${JSONSOURCE}) line="${KEYS}=${VALUE//[\"\']/}"