Project

General

Profile

« Previous | Next » 

Revision 9298

lib/sh/util.sh: run_args_cmd(): moved test of $? to lib/runscripts/util.run on_exit() since it needs to be performed for all run_args_cmd() functions, not just the default implementation. (this test ensures that no commands are executed if the EXIT trap was encountered due to a parsing/loading error).

View differences:

util.sh
488 488

  
489 489
run_args_cmd() # runs the command line args command
490 490
{
491
	test $? -eq 0 || return
492 491
	eval set -- "$(reverse "${BASH_ARGV[@]}")"
493 492
	test $# -ge 1 || set -- all
494 493
	echo_cmd "$top_script" "$@"; "$@"

Also available in: Unified diff