]> git.deb.at Git - pkg/abook.git/blobdiff - debian/postinst
update changelog with unstable updated version
[pkg/abook.git] / debian / postinst
index f856309cd029c8f0014e34c05f1b347e5f613bae..d4601aa5dab998243a00cfd07258f703a3cc8b72 100644 (file)
@@ -1,8 +1,10 @@
-#!/bin/sh -e
+#!/bin/sh
 # postinst for abook
 # copyright 2003-2012 by Gerfried Fuchs <rhonda@debian.org>
 # Licenced under WTFPLv2
 
+set -e
+
 # Source debconf library.
 if [ -e /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
@@ -52,6 +54,6 @@ fi
 
 
 # menu entry
-if [ "$action" = 'configure' ] && [ -x /usr/bin/update-menus ]; then
+if [ "$action" = 'configure' ] && [ -x "`which update-menus`" ]; then
        update-menus
 fi