mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
casks: Fix naming of Symbols Only font
[why]
The symbols only font has two entries in the fonts.json and that breaks
generation of the cask.
[how]
Do the queries on a 'first wins' strategy; ignore further entries in the
fonts.json.
[note]
I guess we should remove one of the two instances of Symbols Only from
the database; I have still not figured out why there are two distinct
entries.
And why there are two fonts at all 😬
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
5cda467ce3
commit
d5d35456e9
1 changed files with 3 additions and 2 deletions
|
@ -157,8 +157,8 @@ while read -r filename; do
|
||||||
sha256sum=$(sha256sum "../archives/${basename}.zip" | head -c 64)
|
sha256sum=$(sha256sum "../archives/${basename}.zip" | head -c 64)
|
||||||
searchdir=$filename
|
searchdir=$filename
|
||||||
|
|
||||||
originalname=$(cat "${scripts_root_dir}/lib/fonts.json" | jq -r ".fonts[] | select(.folderName == "\"${basename}\"") | .unpatchedName" "${scripts_root_dir}/lib/fonts.json")
|
originalname=$(cat "${scripts_root_dir}/lib/fonts.json" | jq -r ".fonts[] | select(.folderName == "\"${basename}\"") | .unpatchedName" "${scripts_root_dir}/lib/fonts.json" | head -n 1)
|
||||||
caskbasename=$(cat "${scripts_root_dir}/lib/fonts.json" | jq -r ".fonts[] | select(.folderName == "\"${basename}\"") | .caskName" "${scripts_root_dir}/lib/fonts.json")
|
caskbasename=$(cat "${scripts_root_dir}/lib/fonts.json" | jq -r ".fonts[] | select(.folderName == "\"${basename}\"") | .caskName" "${scripts_root_dir}/lib/fonts.json" | head -n 1)
|
||||||
if [ -z "$originalname" ]; then
|
if [ -z "$originalname" ]; then
|
||||||
echo "${LINE_PREFIX} Can not find ${basename} in fonts.json, skipping..."
|
echo "${LINE_PREFIX} Can not find ${basename} in fonts.json, skipping..."
|
||||||
continue
|
continue
|
||||||
|
@ -177,6 +177,7 @@ while read -r filename; do
|
||||||
|
|
||||||
caskname="font-${caskbasename}-nerd-font"
|
caskname="font-${caskbasename}-nerd-font"
|
||||||
to="$outputdir/${caskname}.rb"
|
to="$outputdir/${caskname}.rb"
|
||||||
|
echo "@@@$caskname@@@"
|
||||||
|
|
||||||
clear_file "$to"
|
clear_file "$to"
|
||||||
write_header "$to" "$caskname"
|
write_header "$to" "$caskname"
|
||||||
|
|
Loading…
Reference in a new issue