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