From 05ca6de0a1c51153181405cee956244c25913d51 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Fri, 22 May 2020 10:09:25 +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 ed23133..e4257dc 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -851,7 +851,7 @@ read -r -p "Do you wish to use it (y/n)?" yn esac fi else -REALM=$( realm discover +REALM=$( realm discover ) echo "Using Domain: $REALM" DOMAIN=$(echo "$REALM") fi @@ -1055,7 +1055,7 @@ sleep 1 REALM=$( sudo grep DOMAIN readfile | awk '{print $3}' ) if [ "$REALM" = "null" ] then -DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}') +DOMAIN=$(realm discover| grep -i realm.name | awk '{print $2}') if ! ping -c 2 "$DOMAIN" < /dev/null > /dev/null 2>&1 then clear