Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-08-17 11:10:57 +02:00 committed by GitHub
parent a18b59fdd5
commit b790f9ad77

View File

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