Revision 12978
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
228 | 228 |
declare e="$(if test "$e_" = 0; then echo "${e:-0}"; else echo "$e_"; fi)"' |
229 | 229 |
|
230 | 230 |
rethrow() { errexit "${e:-0}"; } # only does anything if $e != 0 |
231 |
rethrow!() { rethrow && false; } # always errexit, even if $e = 0 |
|
231 | 232 |
|
232 | 233 |
fi # load new aliases |
233 | 234 |
if self_being_included; then |
Also available in: Unified diff
lib/sh/util.sh: added rethrow!(), which always errexits, even if $e = 0