chore(fonts): Force clean then regenerate font cache (#331)
Should fix some corner cases where font is not applied. Fixes: #213
This commit is contained in:
commit
ee40a8105d
2 changed files with 4 additions and 4 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue