Re: [Familiar] gpe-mail 0.0.1 released

From: Russell Nelson <nelson.a.t.crynwr.com>
Date: Tue Aug 06 2002 - 13:53:18 EDT

Colin Marquardt writes:
> "Hicks, Jamey" <Jamey.Hicks@hp.com> writes:
>
> > Please update the postinst to check for the presence of
> > /usr/bin/update-menus, using something like:
> >
> > if [ -x /usr/bin/update-menus ] ; then /usr/bin/update-menus ; fi
>
> But don't forget the final part:

This is the best way I've seen that cliche expressed:

if [ -x /usr/bin/update-menus ] ; then
    /usr/bin/update-menus
else
    exit 0
fi

That way, if there was an error returned by update-menus, it gets
propagated up instead of discarded.

-- 
-russ nelson              http://russnelson.com |  New Internet Acronym:
Crynwr sells support for free software  | PGPok |
521 Pleasant Valley Rd. | +1 315 268 1925 voice |         IANAE
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |  I Am Not An Economist
Received on Tue Aug 06 17:53:21 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:29 EDT