mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-26 18:24:45 +00:00
I think UID is better than "root" string.
This commit is contained in:
parent
af6ce8854d
commit
3faf61d05d
1 changed files with 1 additions and 3 deletions
|
|
@ -296,9 +296,7 @@ fi
|
|||
################
|
||||
|
||||
# Got root?
|
||||
myWHOAMI=$(whoami)
|
||||
if [ "$myWHOAMI" != "root" ]
|
||||
then
|
||||
if (( $EUID != 0 )); then
|
||||
echo "Need to run as root ..."
|
||||
exit
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue