chore(fonts): Force clean then regenerate font cache

Should fix some corner cases where font is not applied.

Fixes: #213
This commit is contained in:
fiftydinar 2024-09-17 13:56:58 +02:00
parent 609d7105c1
commit cb0c3bde8b
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ echo "Installation of google-fonts started"
rm -rf "${DEST}"
for FONT in "${FONTS[@]}"; do
if [ -n "$FONT" ]; then
if [ -n "${FONT}" ]; then
FONT="${FONT#"${FONT%%[![:space:]]*}"}" # Trim leading whitespace
FONT="${FONT%"${FONT##*[![:space:]]}"}" # Trim trailing whitespace
mkdir -p "${DEST}/${FONT}"
@ -43,4 +43,4 @@ for FONT in "${FONTS[@]}"; do
fi
done
fc-cache -f "${DEST}"
fc-cache --system-only --really-force "${DEST}"

View file

@ -6,7 +6,7 @@ URL="https://github.com/ryanoasis/nerd-fonts/releases/latest/download"
DEST="/usr/share/fonts/nerd-fonts"
echo "Installation of nerd-fonts started"
rm -rf "$DEST"
rm -rf "${DEST}"
mkdir -p /tmp/fonts
for FONT in "${FONTS[@]}"; do
@ -22,4 +22,4 @@ for FONT in "${FONTS[@]}"; do
done
rm -rf /tmp/fonts
fc-cache -f "${DEST}"
fc-cache --system-only --really-force "${DEST}"