aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/alias-fonts/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/alias-fonts/pkg-deinstall')
-rw-r--r--japanese/alias-fonts/pkg-deinstall6
1 files changed, 4 insertions, 2 deletions
diff --git a/japanese/alias-fonts/pkg-deinstall b/japanese/alias-fonts/pkg-deinstall
index 30fef6cb237d..a22d2653fb25 100644
--- a/japanese/alias-fonts/pkg-deinstall
+++ b/japanese/alias-fonts/pkg-deinstall
@@ -1,6 +1,10 @@
#!/bin/sh
# $FreeBSD$
+if [ $2 != "DEINSTALL" ]; then
+ exit 0
+fi
+
dir="${PKG_PREFIX}/lib/X11/fonts/local";
to="$dir/fonts.alias";
from="$to.orig";
@@ -20,5 +24,3 @@ while read line; do
*) echo $line;;
esac
done < $from > $to
-
-rm $from