Project

General

Profile

« Previous | Next » 

Revision 13181

fix: lib/runscripts/util.run: $wrap_fn: make it usable even if $top_script isn't world-executable

View differences:

util.run
74 74

  
75 75
#### utils
76 76

  
77
wrap_fn="$top_script" # usage: sudo "$wrap_fn" fn ...
77
# usage: sudo $wrap_fn fn ...
78
wrap_fn=
79
if is_world_executable "$top_script"; then wrap_fn="$(esc "$top_script")"; fi
78 80

  
79 81
# usage: to_top_file cmd...
80 82
function to_top_file()

Also available in: Unified diff