Skip to contentSkip to conversation

don't use == in /bin/sh script (bash-specific)

PATCH New Iain Hibbert 1 participant 1 message Dec 28, 2017 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't use == in /bin/sh script (bash-specific)

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure.ac +2 -2
index a7d936c0f..7baf9bbce 100644
@@ -216,7 +216,7 @@ AC_ARG_ENABLE(mesh, AC_HELP_STRING([--enable-mesh],
 		[enable Mesh profile support]), [enable_mesh=${enableval}])
 AM_CONDITIONAL(MESH, test "${enable_mesh}" = "yes")
 
-if (test "${enable_mesh}" == "yes"); then
+if (test "${enable_mesh}" = "yes"); then
 	PKG_CHECK_MODULES(JSONC, json-c, dummy=yes,
 				AC_MSG_ERROR(json-c is required))
 	AC_SUBST(JSON_CFLAGS)
@@ -259,7 +259,7 @@ AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client],
 		[disable command line client]), [enable_client=${enableval}])
 AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
 
-if (test "${enable_client}" != "no" || test "${enable_mesh}" == "yes"); then
+if (test "${enable_client}" != "no" || test "${enable_mesh}" = "yes"); then
         AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
                 AC_MSG_ERROR(readline header files are required))
 fi
Signature · 1 line
2.15.1