Project

General

Profile

« Previous | Next » 

Revision 8281

lib/util.run: run_cmd: Echo the command being run, including the top-level run script. This is in addition to the echoing of the command in the function itself (using echo_func), which provides both the runscript that was run and the file where the invoked command was actually located (which may be different due to includes).

View differences:

util.run
39 39
	# only if called in outermost script (+1 for this script)
40 40
	if test "${#BASH_SOURCE[@]}" -eq 2; then
41 41
		test "$#" -ge 1 || usage "$0 cmd args" || return
42
		"$@"
42
		echo_cmd "$0" "$@"; "$@"
43 43
	fi
44 44
}
45 45

  

Also available in: Unified diff