[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ldconfig in a post(rm|inst) script



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.

>
> regards,
> --
> Herbert Parentes Fortes Neto (hpfn)
>
Cheers,
Alex


Reply to: