commit cecde4e1162cfbe72de9858b03b4b98b95359e28
parent 97399f6b918ef6f99dfe6b22bdfcd0cd346738d6
Author: Jaromil <jaromil@dyne.org>
Date: Wed, 25 Nov 2015 17:41:17 +0100
fixed a typo in EUID check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomb b/tomb
@@ -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
}