fix(fonts): Add necessary trailing newline, to ensure fonts are processed separately (#373)

fix fonts module
This commit is contained in:
Julio Gutierrez 2024-12-04 10:37:10 +00:00 committed by GitHub
parent 7011469432
commit c5a5f02858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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[@]}"