Revision 13188
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
236 | 236 |
|
237 | 237 |
rethrow() { errexit "${e:-0}"; } # only does anything if $e != 0 |
238 | 238 |
rethrow!() { rethrow && false; } # always errexit, even if $e = 0 |
239 |
rethrow_exit() { rethrow || exit; } # exit even where errexit disabled |
|
239 | 240 |
|
240 | 241 |
fi # load new aliases |
241 | 242 |
if self_being_included; then |
Also available in: Unified diff
lib/sh/util.sh: added rethrow_exit(), which exits even where errexit is disabled