Project

General

Profile

« Previous | Next » 

Revision 8284

lib/util.run: fwd: Check that $subdirs is defined. Added $subdirs to usage.

View differences:

lib/util.run
43 43
	fi
44 44
}
45 45

  
46
fwd () # usage: fwd "$FUNCNAME" "$@"
46
fwd () # usage: subdirs=(...); fwd "$FUNCNAME" "$@"
47 47
{
48 48
	echo_func "$FUNCNAME" "$@"
49
	: "${subdirs?}"
50
	
49 51
	for subdir in "${subdirs[@]}"; do
50 52
		"$(dirname "${BASH_SOURCE[1]}")"/"$subdir"/run "$@"
51 53
	done

Also available in: Unified diff