mirror of https://github.com/CISOfy/lynis.git
Fix Scoring for "<"
This commit is contained in:
parent
99fd20aae0
commit
81bac124ee
|
@ -148,9 +148,9 @@
|
|||
fi
|
||||
|
||||
elif [ "${TESTTYPE}" = "<" ]; then
|
||||
if [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" ]; then
|
||||
if [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" -o "${FOUNDVALUE}" -gt "${MEDIUMSCOREDVALUE}"]; then
|
||||
RESULT="WEAK"
|
||||
elif [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" -a "${FOUNDVALUE}" -le "${MEDIUMSCOREDVALUE}" ]; then
|
||||
elif [ "${FOUNDVALUE}" -le "${MEDIUMSCOREDVALUE}" ]; then
|
||||
RESULT="MIDSCORED"
|
||||
elif [ "${FOUNDVALUE}" -le "${EXPECTEDVALUE}" ]; then
|
||||
RESULT="GOOD"
|
||||
|
|
Loading…
Reference in New Issue