On Fri, Oct 9, 2015 at 5:48 PM, Patrick Lauer <patr...@gentoo.org> wrote:
>
>
> On 10/09/15 17:42, Davide Pesavento wrote:
>> On Fri, Oct 9, 2015 at 5:35 PM, hasufell <hasuf...@gentoo.org> wrote:
>>> On 10/08/2015 11:04 PM, Richard Farina wrote:
>>>
>>> +all_ruby_prepare() {
>>> +     [ -f Gemfile.lock ] && rm Gemfile.lock
>>> missing "|| die" afais, should probably be
>>>
>>> [ -f Gemfile.lock ] && { rm Gemfile.lock || die ; }
>>>
>> Or simply:
>>
>> rm -f Gemfile.lock || die
>>
> With -f it always succeeds, so the ||die is redundant  ...
>

No, -f only ignores nonexistent files and doesn't prompt. Other kinds
of error still cause rm to fail.

Reply via email to