Update 19-json_repair.sh

This commit is contained in:
Alexandre
2022-02-16 20:45:21 +01:00
committed by GitHub
parent 082eb1be43
commit 6c35bd8c8a

View File

@@ -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