Revision 11348
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/runscripts/util.run | ||
---|---|---|
50 | 50 |
|
51 | 51 |
#### utils |
52 | 52 |
|
53 |
wrap_fn="$top_script" # usage: sudo "$wrap_fn" fn ... |
|
54 |
|
|
53 | 55 |
# usage: to_top_file cmd... |
54 | 56 |
alias to_top_file='stdout="$top_file" to_file ' #last sp alias-expands next word |
55 | 57 |
|
Also available in: Unified diff
lib/runscripts/util.run: added $wrap_fn to run any function via sudo, etc.