diff --git a/modules/fonts/sources/google-fonts.sh b/modules/fonts/sources/google-fonts.sh index c16235b..eecb74d 100644 --- a/modules/fonts/sources/google-fonts.sh +++ b/modules/fonts/sources/google-fonts.sh @@ -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}" diff --git a/modules/fonts/sources/nerd-fonts.sh b/modules/fonts/sources/nerd-fonts.sh index a641fd2..237872f 100644 --- a/modules/fonts/sources/nerd-fonts.sh +++ b/modules/fonts/sources/nerd-fonts.sh @@ -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}" \ No newline at end of file +fc-cache --system-only --really-force "${DEST}"