Revision 13182
Added by Aaron Marcuse-Kubitza over 10 years ago
util.run | ||
---|---|---|
78 | 78 |
wrap_fn= |
79 | 79 |
if is_world_executable "$top_script"; then wrap_fn="$(esc "$top_script")"; fi |
80 | 80 |
|
81 |
func_override sudo__util_sh |
|
82 |
function sudo() # usage: sudo fn|cmd ... # supports shell functions as well |
|
83 |
{ |
|
84 |
echo_func |
|
85 |
if is_intern "$1"; then set -- $wrap_fn "$@"; fi # shell function, etc. |
|
86 |
sudo__util_sh "$@" |
|
87 |
} |
|
88 |
|
|
81 | 89 |
# usage: to_top_file cmd... |
82 | 90 |
function to_top_file() |
83 | 91 |
{ |
Also available in: Unified diff
lib/runscripts/util.run: added sudo() override that uses $wrap_fn to support shell functions