diff --git a/ADconnection.sh b/ADconnection.sh index ac7a304..b5f8727 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -209,7 +209,7 @@ else echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}" fi grouPs=$(cat /etc/sudoers.d/sudoers | grep -i sewspierre | cut -d '%' -f2 | awk '{print $1}') -if [ $grouPs = "$myhost""sudoers" ] +if [ "$grouPs" = "$myhost""sudoers" ] then echo Checking sudoers users.. "${INTRO_TEXT}"OK"${END}" else