Project

General

Profile

« Previous | Next » 

Revision 14853

bugfix: lib/sh/util.sh: sudo(): when don't need sudo: do need `command` to have effects of invoking external command

View differences:

trunk/lib/sh/util.sh
497 497
{
498 498
	echo_func
499 499
	if is_callable "$1"; then # using sudo with command
500
		if test "$is_root"; then "$@" # don't need sudo
500
		if test "$is_root"; then command "$@" # don't need sudo
501 501
		else sudo__basic "${sudo_cmd_wrapper[@]}" "$@"
502 502
		fi
503 503
	else sudo__basic "$@" # using sudo with just options

Also available in: Unified diff