Project

General

Profile

« Previous | Next » 

Revision 14841

lib/sh/util.sh: added $is_root

View differences:

trunk/lib/sh/util.sh
485 485
sys_cmd() { cmd2sys; command "$@"; } # usage: sys_cmd cmd... # runs system cmd
486 486
	# allows running a system command of the same name as the script
487 487

  
488
is_root="$(test "$(id -un)" = root; exit2bool)"
489

  
488 490
function sudo()
489 491
{
490 492
	echo_func

Also available in: Unified diff