Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2018-01-18 18:50:23 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-01-18 18:50:23 +0300
commit503b2662c6e5e8b2211848ca0866e474b7fd36cb (patch)
tree19a37bbad5b231442880f829beaee4d2b184276a
parent08b865fa154cd5ab184c9577f9619a373d7bda43 (diff)
Implemented NetBSD patch: use correct syntax to compare values
-rw-r--r--include/functions6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/functions b/include/functions
index 9be236a6..73878f55 100644
--- a/include/functions
+++ b/include/functions
@@ -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