summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-mime
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-mime')
-rw-r--r--autoscripts/postinst-mime4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postinst-mime b/autoscripts/postinst-mime
index bef63cc..3749fc9 100644
--- a/autoscripts/postinst-mime
+++ b/autoscripts/postinst-mime
@@ -1 +1,3 @@
-if [ "$1" = "configure" ] && [ -x /usr/sbin/update-mime ]; then update-mime; fi
+if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
+ update-mime
+fi