Implemented NetBSD patch: use correct syntax to compare values

This commit is contained in:
Michael Boelen 2018-01-18 16:50:23 +01:00
parent 08b865fa15
commit 503b2662c6
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 2 additions and 4 deletions

View File

@ -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