tor 2010-04-22 klockan 17:13 +1200 skrev Amos Jeffries:

> What hudson was showing was build always exiting at the first of these 
> files. Even in the "awk ok -> SUCCESS" case. That needs to be figured 
> out before "&& exit 1" can go back on.

right. The sequence of || && is a bit ambiguous. Needs to be explicitly
grouped as in my first variant to get the desired result.

awk || (rm && exit)

alternatively

awk || (rm ; exit)

or using explicit flow control

if ! awk ; then rm ; exit; fi


Regards
Henrik

Reply via email to