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