diff options
Diffstat (limited to 'source/ap/ghostscript-fonts-std/doinst.sh')
-rw-r--r-- | source/ap/ghostscript-fonts-std/doinst.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/ap/ghostscript-fonts-std/doinst.sh b/source/ap/ghostscript-fonts-std/doinst.sh index 3d8d4010..b48dde35 100644 --- a/source/ap/ghostscript-fonts-std/doinst.sh +++ b/source/ap/ghostscript-fonts-std/doinst.sh @@ -1,11 +1,9 @@ #!/bin/sh # Update the X font indexes: -if [ -x /usr/bin/fc-cache ]; then - /usr/bin/fc-cache -f -fi if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then - ( cd /usr/share/fonts/Type1 - mkfontdir . - mkfontscale . - ) + mkfontdir usr/share/fonts/Type1 2> /dev/null + mkfontscale usr/share/fonts/Type1 2> /dev/null +fi +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f 2> /dev/null fi |