mirror of https://github.com/CISOfy/lynis.git
[SSH-7408]: Implemented '!' test type.
This commit is contained in:
parent
d191bed2d7
commit
c394024769
|
@ -160,6 +160,16 @@
|
|||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
|
||||
elif [ "${TESTTYPE}" = "!" ]; then
|
||||
if [ "${FOUNDVALUE}" = "${WEAKVALUE}" ]; then
|
||||
RESULT="WEAK"
|
||||
elif [ ! "${FOUNDVALUE}" = "${WEAKVALUE}" ]; then
|
||||
RESULT="GOOD"
|
||||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
|
||||
else
|
||||
RESULT="NONE"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue