fix pkg_delete if lib/X11/fonts/local/fonts.dir is not empty.

===>  Deinstalling for bitmap-fonts-1.0.p4
pkg_delete: post-deinstall script returned error status
This commit is contained in:
FUJISHIMA Satsuki 2001-03-14 20:15:22 +00:00
parent 096dc9be74
commit cfb3b391bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39853

View File

@ -9,5 +9,5 @@ if [ "x$2" = "xPOST-DEINSTALL" ]; then
echo "to enable this update."
echo "**********************************************************"
)
[ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir
[ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir || true
fi