Update google-fonts.sh

This commit is contained in:
Joe Ipson 2024-04-02 07:36:17 -06:00 committed by GitHub
parent f25b712ff8
commit 0d3d2ebebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,8 +12,6 @@ for FONT in "${FONTS[@]}"; do
FONT="${FONT%"${FONT##*[![:space:]]}"}" # Trim trailing whitespace
mkdir -p "${DEST}/${FONT}"
FILE_REFS=()
readarray -t "FILE_REFS" < <(
if output=$(curl -s "https://fonts.google.com/download/list?family=${FONT// /%20}" | tail -n +2); then
if FILE_REFS=$(echo "$output" | jq -c '.manifest.fileRefs[]' 2>/dev/null); then