Skip to content

Commit

Permalink
fix(fonts): Installation of fonts not performing
Browse files Browse the repository at this point in the history
I made a mistake in recipe format, I forgot to include `fonts:` as the main array, while `nerd-fonts:` & `google-fonts` are its subarrays.
  • Loading branch information
fiftydinar authored Dec 4, 2024
1 parent 1e1cbd3 commit 7011469
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 .[$ARRAY_NAME][]')
readarray -t 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 7011469

Please sign in to comment.