mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
Fixes to pattern and case sensitivity
This commit is contained in:
parent
24ac57a42b
commit
645145a7a3
1 changed files with 5 additions and 4 deletions
|
@ -20,9 +20,9 @@ cd "$scripts_root_dir/../../patched-fonts/" || {
|
||||||
# limit archiving to given pattern (first script param) or entire root folder if no param given:
|
# limit archiving to given pattern (first script param) or entire root folder if no param given:
|
||||||
if [ $# -eq 1 ]
|
if [ $# -eq 1 ]
|
||||||
then
|
then
|
||||||
pattern="./$1"
|
pattern="$1"
|
||||||
search_pattern="*$1*.zip"
|
search_pattern="*$1*.zip"
|
||||||
echo "$LINE_PREFIX Limiting archive to pattern './$pattern'"
|
echo "$LINE_PREFIX Limiting archive to pattern '$pattern'"
|
||||||
else
|
else
|
||||||
pattern="."
|
pattern="."
|
||||||
search_pattern="*.zip"
|
search_pattern="*.zip"
|
||||||
|
@ -34,7 +34,7 @@ find "${outputdir:?}" -name "$search_pattern" -type f -delete
|
||||||
|
|
||||||
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
|
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
|
||||||
#find ./ProFont -maxdepth 0 -type d | # uncomment to test 1 font
|
#find ./ProFont -maxdepth 0 -type d | # uncomment to test 1 font
|
||||||
find $pattern -maxdepth 1 -type d | # uncomment to test all fonts
|
find "./$pattern" -maxdepth 0 -type d | # uncomment to test all fonts
|
||||||
while read -r filename
|
while read -r filename
|
||||||
do
|
do
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ do
|
||||||
|
|
||||||
[[ -d "$outputdir" ]] || mkdir -p "$outputdir"
|
[[ -d "$outputdir" ]] || mkdir -p "$outputdir"
|
||||||
|
|
||||||
zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf'
|
# -ic (ignore case not working)
|
||||||
|
zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf' -i '*.[O,T]TF'
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue