X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Fpostinst;h=d4601aa5dab998243a00cfd07258f703a3cc8b72;hb=6133e3671ffd285d67c11f8ffa3b7ff07f958bc4;hp=408f6dcd34194516ca79586f09ab9ab71d9ad794;hpb=9f8d08201f21610b73690e373bd60716472327b8;p=pkg%2Fabook.git diff --git a/debian/postinst b/debian/postinst index 408f6dc..d4601aa 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,5 +1,9 @@ -#!/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 @@ -50,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