Changing the extensions.json structure to have more order. Updating to version 1.1.0

This commit is contained in:
2023-09-01 17:07:46 +00:00
parent e1245da9de
commit 8bda7b330b
3 changed files with 34 additions and 8 deletions

View File

@ -20,8 +20,8 @@ if [ -f "/home/extensions.json" ]; then
# Read the JSON file into a variable
jsonExtensions=$(cat /home/extensions.json)
# Use jq to extract the array elements
extensions=$(echo $jsonExtensions | jq -r '.[]')
# Use jq to extract the extension parameter from the JSON array
extensions=$(echo $jsonExtensions | jq -r '.[].extensionsGroup[].extensions[].uniqueIdentifier')
# Loop through the extensions and process each element
for extension in $extensions; do