Gentoo Archives: gentoo-dev

From: Patrick Lauer <patrick@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/metasm/
Date: Fri, 09 Oct 2015 15:48:46
Message-Id: 5617E1B8.9090707@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/metasm/ by Davide Pesavento
1 On 10/09/15 17:42, Davide Pesavento wrote:
2 > On Fri, Oct 9, 2015 at 5:35 PM, hasufell <hasufell@g.o> wrote:
3 >> On 10/08/2015 11:04 PM, Richard Farina wrote:
4 >>
5 >> +all_ruby_prepare() {
6 >> + [ -f Gemfile.lock ] && rm Gemfile.lock
7 >> missing "|| die" afais, should probably be
8 >>
9 >> [ -f Gemfile.lock ] && { rm Gemfile.lock || die ; }
10 >>
11 > Or simply:
12 >
13 > rm -f Gemfile.lock || die
14 >
15 With -f it always succeeds, so the ||die is redundant ...

Replies