Revision 8292
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/util.run | ||
---|---|---|
33 | 33 |
|
34 | 34 |
run_cmd () |
35 | 35 |
{ |
36 |
test "$?" -eq 0 || return |
|
36 | 37 |
set -- "${BASH_ARGV[@]}" |
37 | 38 |
test "$#" -ge 1 || set -- all |
38 | 39 |
echo_cmd "$0" "$@"; "$@" |
Also available in: Unified diff
lib/util.run: run_cmd: If bash exited with an error, don't run the "$@" command. This test is necessary because `trap run_cmd EXIT` will run run_cmd as the result of any exit from the shell, including an error.