From bb70012156c4345e34ba052f49dabfae34b1d25a Mon Sep 17 00:00:00 2001 From: PierreGode Date: Wed, 8 Aug 2018 11:20:30 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 806fc45..2c5c8de 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -865,7 +865,7 @@ fi ############################### Reauth ########################################## Reauthenticate(){ -whoelse=$(who | head -1 | awk '{print $1}') +whoelse=$( echo `whoami` ) homes=$( ls /home/tobii.intra/ ) if [ "$homes" = "$whoelse" ] then @@ -933,7 +933,7 @@ fi ########################################### Leave Realm ################################ leave(){ -whoelse=$(who | head -1 | awk '{print $1}') +whoelse=$( echo `whoami` ) homes=$( ls /home/tobii.intra/ ) if [ "$homes" = "$whoelse" ] then