Update ADconnection.sh

This commit is contained in:
PierreGode 2019-02-20 12:21:18 +00:00 committed by GitHub
parent cab7163091
commit 2c347c9e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"