mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +02:00
Docker add option -e PN=1 disable parallel fontforge
This commit is contained in:
parent
45e1ad998a
commit
abc7f3470a
@ -23,6 +23,16 @@ done
|
||||
printf "Running with options:\n%s\n" "$args"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
find /in -type f \( -iname "*.otf" -o -iname "*.ttf" -o -iname "*.woff" -o -iname "*.eot" -o -iname "*.ttc" \) | parallel fontforge -script /nerd/font-patcher -out /out $args {}
|
||||
if [ "$PN" -eq 1 ]; then
|
||||
find /in -type f \
|
||||
\( -iname '*.otf' -o -iname '*.ttf' -o -iname '*.woff' -o -iname '*.eot' -o -iname '*.ttc' \) \
|
||||
-exec fontforge -script /nerd/font-patcher -out /out $args {} \;
|
||||
else
|
||||
njob=""
|
||||
[ "$PN" -gt 1 ] && njob="-j $PN"
|
||||
find /in -type f \
|
||||
\( -iname '*.otf' -o -iname '*.ttf' -o -iname '*.woff' -o -iname '*.eot' -o -iname '*.ttc' \) \
|
||||
| parallel $njob fontforge -script /nerd/font-patcher -out /out $args {}
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user