From 2a26f806d1a8d3e9957b2c9354ae10178fba9afc Mon Sep 17 00:00:00 2001 From: PierreGode Date: Wed, 20 Feb 2019 12:26:50 +0000 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index a72c1c5..c4d966a 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 [ "$?" -eq "0" ] +if [ "$?" = "0" ] then clear echo "${NUMBER}I searched for an available domain and found ${MENU}>>> $DOMAIN <<<${END}${END}" @@ -1178,7 +1178,7 @@ if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1 then echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}" grouPs1=$(cat /etc/sudoers.d/sudoers | grep -i $myhost | cut -d '%' -f2 | cut -d '=' -f1 | sed -e 's/\//g' | head -1) - if [ $grouPs1 -eq "$myhost""sudoers" ] + if [ "$grouPs1" = "$myhost""sudoers" ] then echo Checking sudoers user groups.. "${INTRO_TEXT}"OK"${END}" else