From 503b2662c6e5e8b2211848ca0866e474b7fd36cb Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 18 Jan 2018 16:50:23 +0100 Subject: [PATCH] Implemented NetBSD patch: use correct syntax to compare values --- include/functions | 6 ++---- 1 file 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