casks: Allow for new reduced naming [skip ci]

[why]
For the fix in commit
  d3ee35db  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>
This commit is contained in:
Fini Jastrow 2023-11-21 16:25:41 +01:00
parent fc61e44268
commit d7ec2036d4

View file

@ -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