Revision 12977
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
227 | 227 |
declare e_=$?; |
228 | 228 |
declare e="$(if test "$e_" = 0; then echo "${e:-0}"; else echo "$e_"; fi)"' |
229 | 229 |
|
230 |
rethrow() { errexit "$e"; } # only does anything if $e != 0
|
|
230 |
rethrow() { errexit "${e:-0}"; } # only does anything if $e != 0
|
|
231 | 231 |
|
232 | 232 |
fi # load new aliases |
233 | 233 |
if self_being_included; then |
Also available in: Unified diff
lib/sh/util.sh: rethrow(): also work in situations where $e is not set