diff options
-rw-r--r-- | install-fonts.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/install-fonts.sh b/install-fonts.sh index fdff051..7d803f8 100644 --- a/install-fonts.sh +++ b/install-fonts.sh @@ -58,10 +58,12 @@ install_font 24 cp "fonts/FauxtariScalableMono.ttf" "$TTFDIR" if [ "$SYSTEM" = "yes" ]; then - cd "$TTFDIR" - mkfontdir - mkfontscale - xset fp rehash &> /dev/null fc-cache -f "$BDFDIR" &> /dev/null - fc-cache -f "$TTFDIR" &> /dev/null + xset fp rehash &> /dev/null + if [ "$BDFDIR" != "$TTFDIR" ]; then + cd "$TTFDIR" + mkfontdir + mkfontscale + fc-cache -f "$TTFDIR" &> /dev/null + fi fi |