1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-13 17:18:37 +02:00
nerd-fonts/bin/scripts/docker-entrypoint.sh

20 lines
441 B
Bash
Raw Normal View History

2020-03-05 19:40:18 +02:00
#!/bin/sh
skip=false
args=""
# Discard --out option
for i; do
[ "${i}" != "${i% *}" ] && i="\"$i\""
if [ "$i" = "--out" ] || [ "$i" = "-o" ]; then
skip=true
else
if [ "$skip" = false ] || [ "$i" == "-*" ]; then
args="$args $i"
fi
skip=false
fi
done
for f in /in/*.otf /in/*.ttf /in/*.woff /in/*.eot; do [ -f $f ] && fontforge -script /nerd/font-patcher -out /out $args $f; done