X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fconfigure-fonts;h=7673a20f941133932c69ee5e42f9791167451677;hb=abe5449c7fd7ccd5eae2f721db34cce1f643ee8a;hp=9b0caf413a488f20efbfde02ff1d2065df27946b;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage4/configure-fonts b/stage4/configure-fonts index 9b0caf4..7673a20 100755 --- a/stage4/configure-fonts +++ b/stage4/configure-fonts @@ -1,8 +1,6 @@ #!/bin/bash -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main # When all of the fonts have been installed, the system must be configured so # that Fontconfig can find the TrueType fonts since they are outside of the @@ -13,9 +11,10 @@ ln -svfT /usr/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF X11_FONTS_DIR="/usr/share/fonts/X11" -if ! grep "${X11_FONTS_DIR}" /etc/fonts/local.conf 1> /dev/null 2>&1; then +if ! grep -q "${X11_FONTS_DIR}" /etc/fonts/local.conf; then # Adding X fonts directory to local configuration file - sed -i -e "s!\(\)!