tfixed a typo in EUID check - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cecde4e1162cfbe72de9858b03b4b98b95359e28
DIR parent 97399f6b918ef6f99dfe6b22bdfcd0cd346738d6
HTML Author: Jaromil <jaromil@dyne.org>
Date: Wed, 25 Nov 2015 17:41:17 +0100
fixed a typo in EUID check
Diffstat:
M tomb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/tomb b/tomb
t@@ -210,7 +210,7 @@ _whoami() {
_verbose "Identified caller: ::1 username:: (::2 UID:::::3 GID::)" $_USER $_UID $_GID
# Update USERNAME accordingly if possible
- [[ EUID == 0 && $_USER != $USERNAME ]] && {
+ [[ $EUID == 0 && $_USER != $USERNAME ]] && {
_verbose "Updating USERNAME from '::1 USERNAME::' to '::2 _USER::')" $USERNAME $_USER
USERNAME=$_USER
}