Project

General

Profile

« Previous | Next » 

Revision 13313

bugfix: lib/runscripts/util.run: a non-runscript should have all args passed to main(). this fixes a bug in backups/*_snapshot where "main" would need to be prepended to any args for the script to run correctly.

View differences:

trunk/lib/runscripts/util.run
50 50
gateway() # overridable handler for *all* targets
51 51
{ echo_func; if is_callable "$1"; then "$@"; else fallback "$@"; fi; }
52 52

  
53
if test ! "$is_runscript"; then # non-runscript
54
gateway() { echo_func; main "$@"; } # pass all args to main()
55
fi
56

  
53 57
run_args_cmd() # runs the command line args command
54 58
{
55 59
	if is_dot_script; then set -- "${include_args[@]}"

Also available in: Unified diff