fix: Trim Google Font names so that they download properly (#184)

This commit is contained in:
Joe Ipson 2024-04-02 06:30:44 -06:00 committed by GitHub
parent 0601656c1b
commit a656019893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,8 @@ echo "Installation of google-fonts started"
rm -rf "${DEST}"
for FONT in "${FONTS[@]}"; do
FONT="${FONT#"${FONT%%[![:space:]]*}"}" # Trim leading whitespace
FONT="${FONT%"${FONT##*[![:space:]]}"}" # Trim trailing whitespace
mkdir -p "${DEST}/${FONT}"
readarray -t "FILE_REFS" < <(
@ -26,4 +28,4 @@ for FONT in "${FONTS[@]}"; do
done
done
fc-cache -f "${DEST}"
fc-cache -f "${DEST}"