mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-22 18:18:59 +00:00
[cleanup] Remove unused global variable
This commit is contained in:
parent
b340721307
commit
0e9453ebd8
5
tomb
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user