mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-20 18:40:31 +01:00
Update 19-json_repair.sh
This commit is contained in:
@@ -23,7 +23,7 @@ if [ -f ${JSONTOCHECK} ]; then
|
|||||||
|
|
||||||
# Check if all keys are still there, or add them
|
# Check if all keys are still there, or add them
|
||||||
# spellcheck disable=SC2068
|
# spellcheck disable=SC2068
|
||||||
for KEYS in ${arr[@]}; do
|
for KEYS in "${arr[@]}"; do
|
||||||
# Check if key exists
|
# Check if key exists
|
||||||
KEYSTHERE=$(jq "has(\"${KEYS}\")" ${JSONTOCHECK})
|
KEYSTHERE=$(jq "has(\"${KEYS}\")" ${JSONTOCHECK})
|
||||||
if [ "$KEYSTHERE" != "true" ]; then
|
if [ "$KEYSTHERE" != "true" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user