Project

General

Profile

« Previous | Next » 

Revision 14856

lib/sh/util.sh: become_sudo: documented that this is for funcs that run multiple sudo commands

View differences:

trunk/lib/sh/util.sh
505 505
}
506 506
alias sudo='"sudo" ' # last space alias-expands next word
507 507

  
508
# usage: func() { become_sudo; __; }
508
# usage: func() { become_sudo; __; } # for funcs that run multiple sudo commands
509 509
alias self_sudo='sudo "${FUNCNAME%%__*}" "$@"'
510 510
alias become_sudo='if ! test "$is_root"; then self_sudo; fi'
511 511

  

Also available in: Unified diff