Fix a bug for 10.1.6

This commit is contained in:
Samson-W 2019-12-29 15:12:23 +08:00
parent b7794be540
commit c2417d89ee

View File

@ -33,6 +33,7 @@ audit ()
FNRET=1
else
ok "$NOPASSWD is not set on $FILE, it's ok"
if [ $(ls $(dirname $INCLUDFILE) | wc -l) -gt 0 ]; then
if [ $(grep $NOPASSWD $INCLUDFILE | wc -l) -gt 0 ]; then
crit "$NOPASSWD is set on $INCLUDFILE, it's error conf"
FNRET=1
@ -42,6 +43,7 @@ audit ()
fi
fi
fi
fi
}
# This function will be called if the script status is on enabled mode