Revision 9039
Added by Aaron Marcuse-Kubitza over 11 years ago
table.run | ||
---|---|---|
4 | 4 |
#!/bin/bash -e |
5 | 5 |
. "$(dirname "${BASH_SOURCE[0]}")"/path/to/table.run |
6 | 6 |
|
7 |
func_override import__table_run |
|
7 | 8 |
import () |
8 | 9 |
{ |
9 | 10 |
echo_func |
10 | 11 |
before_import_cmds |
11 |
"$(dirname "${BASH_SOURCE[0]}")"/path/to/table.run "$FUNCNAME" "$@"
|
|
12 |
import__table_run "$@"
|
|
12 | 13 |
after_import_cmds |
13 | 14 |
} |
14 | 15 |
fi #### |
Also available in: Unified diff
bugfix: : use new func_override for runscript inheritance instead of invoking the overridden function as a (command-line) target of the parent runscript. this ensures that the overridden function is run in the *same process as the calling function, so that $top_dir keeps the same value and runscript-relative paths continue to work.