Project

General

Profile

« Previous | Next » 

Revision 8290

lib/util.run: run_cmd: When no command specified, default to running the `all` command, just like make

View differences:

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