makeFontsConf: fixup to accept older font packages

They contain fonts on the silly path lib/X11/fonts/
This commit is contained in:
Vladimír Čunát 2014-08-11 13:05:23 +02:00
parent 26ec124da8
commit 77487fe661

View File

@ -8,8 +8,8 @@ runCommand "fonts.conf"
'' ''
for fd in $fontDirectories; for fd in $fontDirectories;
do do
if [ ! -d "$fd/share/fonts" ]; then if [ ! -d "$fd/share/fonts" ] && [ ! -d "$fd/lib/X11/fonts" ]; then
echo "ERROR: '$fd/share/fonts/' doesn't exist" echo "ERROR: '$fd/' contains neither 'share/fonts/' nor 'lib/X11/fonts/'"
false false
fi fi
done done