Project

General

Profile

« Previous | Next » 

Revision 13349

bugfix: lib/sh/util.sh: is_err(): rethrow must be inverted (rethrow->false if error)

View differences:

trunk/lib/sh/util.sh
390 390
rethrow!() { rethrow && false; } # always errexit, even if $e = 0
391 391
rethrow_exit() { rethrow || exit; } # exit even where errexit disabled
392 392

  
393
is_err() { rethrow; }
393
is_err() { ! rethrow; } # rethrow->*false* if error
394 394

  
395 395
fi # load new aliases
396 396
if self_being_included; then

Also available in: Unified diff