On Sat, Sep 29, 2007 at 03:18:27PM +0200, Hubert Feyrer
wrote:
> On Sat, 29 Sep 2007, Pavel Cahyna wrote:
> >why does postinstall return 0 even if some check or
fix failed? I would
> >like to check programmatically for the success of a
postinstall check. Any
> >suggestions how to do it best?
>
> Maybe follow grep(1)'s example:
> 0 - no problem
> 1 - a check/fix failed
> 2 - an error ocurred
OK. But then check will return a different code than fix,
because when
"check" fails, "fix" is needed and it
typically succeeds.
Pavel
|