#!/bin/bash source ../functions/main X11_FONTS_DIR="/usr/share/fonts/X11" if ! grep -q "${X11_FONTS_DIR}" /etc/fonts/local.conf; then # Adding X fonts directory to local configuration file sed -i -e "s!\(\)! ${X11_FONTS_DIR}\n\1!" \ /etc/fonts/local.conf fi # Updating cache database. fc-cache -f exit $?