From 2c347c9e3ad22070de4d19bd72c56b411f59544a Mon Sep 17 00:00:00 2001 From: PierreGode Date: Wed, 20 Feb 2019 12:21:18 +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 a9f4df7..9eb0be6 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 [ "$?" = "0" ] then clear echo "${NUMBER}I searched for an available domain and found ${MENU}>>> $DOMAIN <<<${END}${END}"