Revision 8290
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.run | ||
---|---|---|
35 | 35 |
run_cmd () |
36 | 36 |
{ |
37 | 37 |
set -- "${BASH_ARGV[@]}" |
38 |
test "$#" -ge 1 || usage "$0 cmd args" || return
|
|
38 |
test "$#" -ge 1 || set -- all
|
|
39 | 39 |
echo_cmd "$0" "$@"; "$@" |
40 | 40 |
} |
41 | 41 |
trap run_cmd EXIT |
Also available in: Unified diff
lib/util.run: run_cmd: When no command specified, default to running the `all` command, just like make