Revision 12866
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.run | ||
---|---|---|
57 | 57 |
indent; time gateway "$@" |
58 | 58 |
} |
59 | 59 |
|
60 |
# users can override run_args_cmd to perform other commands (or no commands)
|
|
61 |
# after the script is read |
|
60 |
# users can override run_args_cmd()/gateway()/fallback() to perform other
|
|
61 |
# commands (or no commands) after the script is read
|
|
62 | 62 |
on_exit() { test $? -eq 0 || return; run_args_cmd; } |
63 | 63 |
if ! is_dot_script; then trap on_exit EXIT; fi |
64 | 64 |
|
Also available in: Unified diff
lib/runscripts/util.run: on_exit(): documented that users can also override gateway()/fallback() to perform other commands (or no commands) after the script is read