mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-27 02:34:43 +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?
|
# Got root?
|
||||||
myWHOAMI=$(whoami)
|
if (( $EUID != 0 )); then
|
||||||
if [ "$myWHOAMI" != "root" ]
|
|
||||||
then
|
|
||||||
echo "Need to run as root ..."
|
echo "Need to run as root ..."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue