Project

General

Profile

« Previous | Next » 

Revision 11348

lib/runscripts/util.run: added $wrap_fn to run any function via sudo, etc.

View differences:

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