mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
archive-fonts: Fix missing readme in archive
[why] When run on more than one font the mini-readme is only added to the first created archive. [how] Remove the readme file only after all archives have been generated. [note] Also rewrite `find` command, to actually do some work. The formulation was rather odd, using a shell glob to find the directories and `find` to select one. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
bc87b361a2
commit
e7722458fc
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Nerd Fonts Version: 2.1.0
|
||||
# Script Version: 1.1.1
|
||||
# Script Version: 1.1.2
|
||||
# Iterates over all patched fonts directories
|
||||
# to generate ruby cask files for homebrew-fonts (https://github.com/caskroom/homebrew-fonts)
|
||||
# adds Windows versions of the fonts as well (casks files just won't download them)
|
||||
@ -48,7 +48,7 @@ find "${outputdir:?}" -name "$search_pattern" -type f -delete
|
||||
#find ./ProFont -maxdepth 0 -type d | # uncomment to test 1 font
|
||||
# find ./IBMPlexMono -maxdepth 0 -type d | # uncomment to test 1 font
|
||||
# uncomment to test all fonts:
|
||||
find -- * -maxdepth 0 -iregex "$pattern" -type d |
|
||||
find . -maxdepth 1 -iregex "\./$pattern" -type d |
|
||||
while read -r filename
|
||||
do
|
||||
|
||||
@ -78,7 +78,7 @@ do
|
||||
|
||||
# add mini readme file
|
||||
zip -9 "$outputdir/$basename" -rj "$mini_readme" -q
|
||||
rm -f "$mini_readme"
|
||||
done
|
||||
rm -f "$mini_readme"
|
||||
|
||||
ls -al "$outputdir"
|
@ -82,7 +82,7 @@ function write_footer {
|
||||
|
||||
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
|
||||
#find ./ProFont -maxdepth 2 -type d | # uncomment to test 1 font
|
||||
find . -maxdepth 1 -mindepth 1 -type d | # uncomment to test 1 font
|
||||
find . -maxdepth 1 -mindepth 1 -type d -iregex "./$1" |
|
||||
while read -r filename
|
||||
do
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user