From 61112c8df0d816fbe16ac710c94abc098b865905 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Mar 2009 17:43:29 +0100 Subject: etc/function: Style change --- etc/function | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'etc/function') diff --git a/etc/function b/etc/function index a0f63c3..1298058 100644 --- a/etc/function +++ b/etc/function @@ -10,15 +10,11 @@ autoload zargs autoload $ZDIR/functions/*(*N:t) function Start Stop Restart Reload { - typeset script - function __sudo { - if ((EUID)) { - sudo $* - } else { - $* - } + typeset script sudo + if ((EUID)) { + sudo=sudo } for script in $*; { - __sudo /etc/init.d/$script ${0:l} + $sudo /etc/init.d/$script ${0:l} } } -- cgit v1.2.3