mirror of https://github.com/CISOfy/lynis.git
Implemented NetBSD patch: use correct syntax to compare values
This commit is contained in:
parent
08b865fa15
commit
503b2662c6
|
@ -3005,18 +3005,16 @@
|
|||
else
|
||||
LogText "${FUNCNAME}: checking value for application ${APP}"
|
||||
LogText "${FUNCNAME}: ${OPTION} is set to ${1}"
|
||||
|
||||
|
||||
LogText "${FUNCNAME}: check if ${1} is equal to ${2}"
|
||||
|
||||
if [ "$1" == "$2" ]; then
|
||||
if [ "$1" = "$2" ]; then
|
||||
LogText "${FUNCNAME}: ${1} is equal to ${2}"
|
||||
RETVAL=0
|
||||
fi
|
||||
|
||||
if ! [ -z ${3+x} ]; then
|
||||
LogText "${FUNCNAME}: ${1} is equal to ${3}"
|
||||
if [ "$2" == "$3" ]; then
|
||||
if [ "$2" = "$3" ]; then
|
||||
LogText "${FUNCNAME}: ${OPTION} is equal to ${3}"
|
||||
RETVAL=1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue