fix: Trim Google Font names so that they download properly (#184)
This commit is contained in:
parent
0601656c1b
commit
a656019893
1 changed files with 3 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue