Re: ldconfig in a post(rm|inst) script
On Tue, 6 Oct 2015 22:42:25 +0800
Alex Vong <alexvong1995@gmail.com> wrote:
> Hi Herbert,
>
> On 06/10/2015, Herbert Parentes Fortes Neto <hpfn@ig.com.br> wrote:
> > Hi Alex,
> >
> >
> >> >> >>> rm -f
> >> >> >>> /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE-device.fdi
> >> >> >>> || true
> >
> >> > What errors if using 'rm -f', right ?
> >> >
> >> What do you mean by that? Could you please explain further?
> >
> > Using 'rm -f' doesn't return a error.
> >
> > if I do (TESTE doesn't exist) :
> >
> > $rm -f TESTE; echo $?
> > 0
> >
> >
> > $rm TESTE; echo $?
> > 1
> > not found
> >
> Yes, that's why Jakub suggested you almost always shouldn't be using
> ``|| true'' since using ``-f'' suffices. Also ``|| true'' may shadow a
> real problem.
Ok, it is not in postinst and I will remove from postrm.
regards,
--
Herbert Parentes Fortes Neto (hpfn)
Reply to: