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
Received on Thu Apr 22 2010 - 20:03:11 MDT
This archive was generated by hypermail 2.2.0 : Fri Apr 23 2010 - 12:00:09 MDT