Revision 13349
Added by Aaron Marcuse-Kubitza over 10 years ago
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
bugfix: lib/sh/util.sh: is_err(): rethrow must be inverted (rethrow->false if error)