Project

General

Profile

« Previous | Next » 

Revision 12712

lib/runscripts/util.run: fwd(): support subdirs that don't contain a runscript, so that the default value of @subdirs will work in most cases

View differences:

util.run
87 87
	: "${subdirs?}"
88 88
	
89 89
	local_export auto_ignore=1
90
	for subdir in "${subdirs[@]}"; do "$top_dir"/"$subdir"/run "$@"; done
90
	for subdir in "${subdirs[@]}"; do
91
		local runscript="$top_dir"/"$subdir"/run
92
		if test -f "$runscript"; then "$runscript" "$@"; fi
93
	done
91 94
}
92 95
alias fwd_self='fwd "$FUNCNAME" "$@"' # usage: target() { ...; fwd_self; }
93 96

  

Also available in: Unified diff