Skip to content

Commit

Permalink
casks: Allow for new reduced naming [skip ci]
Browse files Browse the repository at this point in the history
[why]
For the fix in commit
  d3ee35d  name-parser: Unify abbreviations in family names

we dropped the alternative Family name with 'Nerd Font' in the cases
where the ID1/2 Family is just 'NF' (and equivalents).

The current cask generator will not find the family then anymore.

[how]
Also allow 'NF' as string, but that might trigger in the wrong places,
so not so nice.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Finii committed Nov 21, 2023
1 parent fc61e44 commit d7ec203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/scripts/generate-casks.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Nerd Fonts Version: 3.1.0
# Script Version: 2.2.1
# Script Version: 2.2.2
#
# Iterates over all [*] archived fonts
# to generate ruby cask files for homebrew-fonts (https://github.com/caskroom/homebrew-fonts)
@@ -79,7 +79,7 @@ function find_nerdish_family {
if [ -z "$fn" ]; then
return
fi
if [[ "${fn}" == *Nerd* ]]; then
if [[ "${fn}" == *Nerd* ]] || [[ "${fn}" == *NF* ]]; then
echo "${fn}"
return
fi

0 comments on commit d7ec203

Please sign in to comment.