commit 0e9453ebd8bd236ab3e4e2eea3e0544ee8385011
parent b3407213076190ac5f15b1948c85c5dc83d15ca4
Author: hellekin <hellekin@cepheide.org>
Date: Wed, 22 Oct 2014 19:17:13 -0300
[cleanup] Remove unused global variable
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tomb b/tomb
@@ -66,7 +66,6 @@ TMPPREFIX="/dev/shm/$RANDOM.$RANDOM."
unsetopt CASE_MATCH
typeset -AH OPTS # command line options (see main())
-typeset -H username
typeset -H _uid
typeset -H _gid
@@ -276,10 +275,8 @@ exec_as_user() {
return $?
}
-#Escalate privileges
+# Escalate privileges
check_priv() {
- # save original user
- username=$USER
if [ $UID != 0 ]; then
_verbose "Using sudo for root execution of '::1 exec:: ::2 args::'." $TOMBEXEC ${(f)OLDARGS}
# check if sudo has a timestamp active