Revision 13311
Added by Aaron Marcuse-Kubitza over 10 years ago
util.run | ||
---|---|---|
36 | 36 |
|
37 | 37 |
#### setup |
38 | 38 |
|
39 |
# allow caller to override, eg. to force runscript mode when using $wrap_fn |
|
40 |
: "${is_runscript=$(ends_with '[/.]run' "$top_script_abs"; exit2bool)}" |
|
41 |
|
|
39 | 42 |
if is_dot_script; then |
40 | 43 |
if test "$1" = .; then set --; fi # $@ wrong: no args->contains script name |
41 | 44 |
include_args=("$@") # from `. .../util.run "$@"` |
Also available in: Unified diff
lib/runscripts/util.run: added $is_runscript, for use by $wrap_fn