Project

General

Profile

« Previous | Next » 

Revision 12976

lib/sh/util.sh: rethrow: made it a function since there is now no need for it to be an alias

View differences:

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
alias rethrow='errexit "$e"' # only does anything if $e != 0
230
rethrow() { errexit "$e"; } # 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