diff --git a/ADconnection.sh b/ADconnection.sh index cc70a12..a72c1c5 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -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 = "$myhost""sudoers" ] + if [ $grouPs1 -eq "$myhost""sudoers" ] then echo Checking sudoers user groups.. "${INTRO_TEXT}"OK"${END}" else