X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2Fpostinst;h=d4601aa5dab998243a00cfd07258f703a3cc8b72;hb=defe160daf228dfcdceecb41a0f82005d5ee2523;hp=f856309cd029c8f0014e34c05f1b347e5f613bae;hpb=6f33a81fa948039f42f38cb96f736820be524539;p=pkg%2Fabook.git diff --git a/debian/postinst b/debian/postinst index f856309..d4601aa 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # postinst for abook # copyright 2003-2012 by Gerfried Fuchs # 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