1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-19 03:12:07 +02:00

gotta-patch-em-all: Fix filename parsing (part 2)

[why]
The new 'pathname' pattern always added a '*' glob to the end.

So when we wanted to (just) recreate "Inconsolata" (by specifying
"/Inconsolata") that means "/Inconsolata*/*.[to]tf".

But that includes also "IncolsolataGo" and "InconsolataLCG" :-(

[how]
Just remove the globbing after the pathname. If a pathname is specified
it must be the correct pathname and no star is added per default.

Users could still specify "/Incon*" to get all Inconsolatas in the
pathname based filter mode.
This commit is contained in:
Fini Jastrow 2022-08-19 13:07:28 +02:00 committed by Fini
parent 5ff4f92a23
commit 47b0c083d5

View File

@ -13,7 +13,7 @@
# If the argument starts with a '/' all font files in a directory that matches
# the filter are processed only.
# Example ./gotta-patch-em-all-font-patcher\!.sh "/iosevka"
# Process all font files that are in directories that start with "iosevka"
# Process all font files that are in directory "iosevka"
# for executing script to rebuild JUST the readmes:
# ./gotta-patch-em-all-font-patcher\!.sh "" info
@ -55,7 +55,7 @@ then
if [[ "${1:0:1}" == "/" ]]
then
like_mode="-ipath"
like_pattern="*$1*/*.[o,t]tf"
like_pattern="*$1/*.[o,t]tf"
echo "$LINE_PREFIX Parameter given, limiting search and patch to pathname pattern '$1' given"
else
like_mode="-iname"