Revision 13312
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/runscripts/util.run | ||
---|---|---|
81 | 81 |
# usage: sudo $wrap_fn fn ... |
82 | 82 |
wrap_fn="$(esc "$top_script")" |
83 | 83 |
# if sudo to non-root and $top_script not world-executable, produces error |
84 |
# invoked script must always run as runscript so that wrapped command is run |
|
85 |
if test ! "$is_runscript"; then wrap_fn="env is_runscript=1 $wrap_fn"; fi |
|
84 | 86 |
|
85 | 87 |
func_override sudo__util_sh |
86 | 88 |
function sudo() # usage: sudo fn|cmd ... # supports shell functions as well |
Also available in: Unified diff
bugfix: lib/runscripts/util.run: $wrap_fn: invoked script must always run as runscript so that wrapped command is run