Dnia 2015-10-09, o godz. 17:48:08 Patrick Lauer <patr...@gentoo.org> napisał(a):
> 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, it doesn't. $ rm -f 1111; echo $? rm: cannot remove '1111': Operation not permitted 1 -- Best regards, Michał Górny <http://dev.gentoo.org/~mgorny/>
pgp_UdkCM2L6a.pgp
Description: OpenPGP digital signature