Merge pull request #1156 from alexbelgium/create-pull-request/patch-1704623709

Github bot : script beautyshied
This commit is contained in:
Alexandre authored and GitHub committed 2024-01-07 11:39:51 +01:00
commit 0c4095ac12
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ JSONSOURCE="/data/options.json"
mapfile -t arr < <(jq -r 'keys[]' "${JSONSOURCE}") mapfile -t arr < <(jq -r 'keys[]' "${JSONSOURCE}")
for KEYS in "${arr[@]}"; do for KEYS in "${arr[@]}"; do
# export key # export key
VALUE=$(jq ."$KEYS" "${JSONSOURCE}") VALUE=$(jq ."$KEYS" "${JSONSOURCE}")
# Check if the value is an array # Check if the value is an array
if [[ "$VALUE" == \[* ]]; then if [[ "$VALUE" == \[* ]]; then