From cca8f86b262c041fed017fb8c73c107153bf237e Mon Sep 17 00:00:00 2001 From: Pierre Gode Date: Mon, 29 Apr 2019 13:42:59 +0200 Subject: [PATCH] small update --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index f87108a..363b56b 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1459,7 +1459,7 @@ clear export HOSTNAME myhost=$( hostname | cut -d '.' -f1 ) DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}' | tr "[:upper:]" "[:lower:]") -if [ -z $1 ] +if [ -z $2 ] then if [ -d /home/"$DOMAIN" ] then @@ -1475,7 +1475,7 @@ read -r user id "$user" | grep "$myhost" fi else -id "$1" +id "$2" fi exit }