Skip to content

Commit

Permalink
fix(fonts): Add necessary trailing newline, to ensure fonts are proce…
Browse files Browse the repository at this point in the history
…ssed separately (#373)

fix fonts module
  • Loading branch information
bubuntux authored Dec 4, 2024
1 parent 7011469 commit c5a5f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fonts/fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand Down

0 comments on commit c5a5f02

Please sign in to comment.