diff --git a/.templates/19-json_repair.sh b/.templates/19-json_repair.sh index 2d07fd5df..200ea58d7 100644 --- a/.templates/19-json_repair.sh +++ b/.templates/19-json_repair.sh @@ -23,7 +23,7 @@ if [ -f ${JSONTOCHECK} ]; then # Check if all keys are still there, or add them # spellcheck disable=SC2068 - for KEYS in ${arr[@]}; do + for KEYS in "${arr[@]}"; do # Check if key exists KEYSTHERE=$(jq "has(\"${KEYS}\")" ${JSONTOCHECK}) if [ "$KEYSTHERE" != "true" ]; then