summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-xfonts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-xfonts')
-rw-r--r--autoscripts/postinst-xfonts16
1 files changed, 9 insertions, 7 deletions
diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts
index a0b58c9..ae99963 100644
--- a/autoscripts/postinst-xfonts
+++ b/autoscripts/postinst-xfonts
@@ -1,8 +1,10 @@
-fontdirs="#FONTDIRS#"
-updatecmds="#UPDATECMDS#"
-
-for dir in $fontdirs; do
- for currentcmd in $updatecmds; do
- $currentcmd /usr/lib/X11/fonts/$dir
+if [ "$1" = "configure" ]; then
+ fontdirs="#FONTDIRS#"
+ updatecmds="#UPDATECMDS#"
+
+ for dir in $fontdirs; do
+ for currentcmd in $updatecmds; do
+ $currentcmd /usr/lib/X11/fonts/$dir
+ done
done
-done
+fi