Merge pull request #20 from dnavre/patch-1
Making sure additional fonts are correctly countedpull/21/head
commit
4d24e622d0
|
|
@ -41,7 +41,7 @@ fi
|
||||||
|
|
||||||
# copy additional fonts before starting the tomcat
|
# copy additional fonts before starting the tomcat
|
||||||
# we also count whether at least one file with the fonts exists
|
# we also count whether at least one file with the fonts exists
|
||||||
count=`ls -1 *.ttf 2>/dev/null | wc -l`
|
count=`ls -1 $ADDITIONAL_FONTS_DIR/*.ttf 2>/dev/null | wc -l`
|
||||||
if [ -d "$ADDITIONAL_FONTS_DIR" ] && [ $count != 0 ]; then
|
if [ -d "$ADDITIONAL_FONTS_DIR" ] && [ $count != 0 ]; then
|
||||||
cp $ADDITIONAL_FONTS_DIR/*.ttf /usr/share/fonts/truetype/
|
cp $ADDITIONAL_FONTS_DIR/*.ttf /usr/share/fonts/truetype/
|
||||||
echo "Installed $count TTF font file(s) from the additional fonts folder"
|
echo "Installed $count TTF font file(s) from the additional fonts folder"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue