Bug#243230: x-ttcidfont-conf: Syntax error in postinst
/usr/share/doc/x-ttcidfont-conf/changelog.gz
* postinst:
- Do not fail when /etc/X11/fonts/TrueType is a symlink (Closes: #220723)
The test for symbolic link should be -L.
--
--Jhair
Public Key fingerprint:
81FF 3ADF BF6B CECB C593 4018 27AE D7D2 BAA6 00D0
--- postinst.orig 2004-04-06 14:17:07.000000000 +0200
+++ postinst 2004-04-12 10:10:42.000000000 +0200
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
set -e
@@ -11,7 +11,7 @@
rm -f /etc/X11/fonts/TrueType/x-ttcid.alias /etc/X11/fonts/TrueType/x-ttcid.scale
rm -f /etc/X11/fonts/CID/x-ttcid.alias /etc/X11/fonts/CID/x-ttcid.scale
[ -d /etc/X11/fonts/CID ] && rmdir --ignore-fail-on-non-empty /etc/X11/fonts/CID
- if [ -l /etc/X11/fonts/TrueType ] ; then
+ if [ -L /etc/X11/fonts/TrueType ] ; then
rm /etc/X11/fonts/TrueType
else if [ -d /etc/X11/fonts/TrueType ] ; then
rmdir --ignore-fail-on-non-empty /etc/X11/fonts/TrueType
Reply to: