From 440708949d4e6c30a4e28b50e6a4995a7e505707 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Wed, 20 Feb 2019 12:23:03 +0000 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 9eb0be6..cc70a12 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1078,7 +1078,7 @@ echo "hostname is $myhost" echo "Looking for Realms.. please wait" DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}') ping -c 2 $DOMAIN >/dev/null -if [ "$?" = "0" ] +if [ "$?" -eq "0" ] then clear echo "${NUMBER}I searched for an available domain and found ${MENU}>>> $DOMAIN <<<${END}${END}"