diff options
author | hrs <hrs@FreeBSD.org> | 2009-05-31 20:23:02 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2009-05-31 20:23:02 +0800 |
commit | edb2ea0c789190e577a3ad7e4a0e9745e7f056ee (patch) | |
tree | 22cbb7d6c68f33d9970899b90665c0a2773b769a /japanese/font-ume | |
parent | 25e4163defb1130f0f23782df1e2bc6a9698a818 (diff) | |
download | freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.tar.gz freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.tar.zst freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.zip |
Remove fonts.dir when it is empty.
Spotted by: QAT
Diffstat (limited to 'japanese/font-ume')
-rw-r--r-- | japanese/font-ume/files/pkg-install.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/japanese/font-ume/files/pkg-install.in b/japanese/font-ume/files/pkg-install.in index ae681a45ad70..56994519c7b0 100644 --- a/japanese/font-ume/files/pkg-install.in +++ b/japanese/font-ume/files/pkg-install.in @@ -97,5 +97,8 @@ DEINSTALL) exec < fonts.dir; rm -f fonts.dir (echo "${_num}"; cat) > fonts.dir chmod 0444 fonts.dir + if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then + rm -f fonts.dir + fi ;; esac |