From d7ec2036d49be78a6104abf9f092aeffb3f60ec0 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Tue, 21 Nov 2023 16:25:41 +0100 Subject: [PATCH] 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 --- bin/scripts/generate-casks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/scripts/generate-casks.sh b/bin/scripts/generate-casks.sh index 90d4d76467..4f78a6ef52 100755 --- a/bin/scripts/generate-casks.sh +++ b/bin/scripts/generate-casks.sh @@ -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