diff --git a/modules/fonts/fonts.sh b/modules/fonts/fonts.sh index 301616e..daca156 100644 --- a/modules/fonts/fonts.sh +++ b/modules/fonts/fonts.sh @@ -8,7 +8,7 @@ for SOURCE in "$MODULE_DIRECTORY"/fonts/sources/*.sh; do # get array of fonts for current source FILENAME=$(basename -- "${SOURCE}") ARRAY_NAME="${FILENAME%.*}" - readarray -t FONTS < <(echo "${1}" | jq -c -r --arg ARRAY_NAME "${ARRAY_NAME}" 'try .["fonts"].[$ARRAY_NAME][]') + readarray FONTS < <(echo "${1}" | jq -c -r --arg ARRAY_NAME "${ARRAY_NAME}" 'try .fonts.[$ARRAY_NAME][]') if [ ${#FONTS[@]} -gt 0 ]; then bash "${SOURCE}" "${FONTS[@]}"