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;
do
if [ ! -d "$fd/share/fonts" ]; then
echo "ERROR: '$fd/share/fonts/' doesn't exist"
if [ ! -d "$fd/share/fonts" ] && [ ! -d "$fd/lib/X11/fonts" ]; then
echo "ERROR: '$fd/' contains neither 'share/fonts/' nor 'lib/X11/fonts/'"
false
fi
done