neverpanic / google-font-download

Locally host Google's web fonts
https://neverpanic.de/blog/2014/03/19/downloading-google-web-fonts-for-local-hosting/
BSD 2-Clause "Simplified" License
706 stars 72 forks source link

SVG download fails & kills bash #17

Closed blueberry-media closed 6 years ago

blueberry-media commented 6 years ago

On multi fonts download the script will stop because curl gets a 500 error check with "Amiri:regular" (svg fails)

Possible solution is catching curl error

curl -sfL "$file" -o "${fontnameescaped}.$uakey" || printf >&2 " failed: %s\n" "${fontnameescaped}.$uakey"

neverpanic commented 6 years ago

Please re-test with the current master.