Using [[ is a bashism. We can just use [ since this is a simple
comparision.

        * tests/thread-safety-subr.sh: Use if [ instead of if [[.

Signed-off-by: Mark Wielaard <m...@klomp.org>
---
 tests/thread-safety-subr.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/thread-safety-subr.sh b/tests/thread-safety-subr.sh
index 1024df02d19e..90d9d9845b43 100644
--- a/tests/thread-safety-subr.sh
+++ b/tests/thread-safety-subr.sh
@@ -26,7 +26,7 @@ check_thread_safety_enabled()
        ${abs_builddir}/../config.h | awk '{print $3}')
 
   # Test will only be run if USE_LOCKS is defined. Otherwise, skip.
-  if [[ "$USE_LOCKS" != 1 ]]; then
+  if [ "$USE_LOCKS" != 1 ]; then
     echo "USE_LOCKS is not defined. Skipping test."
     exit 77
   fi
-- 
2.49.0

Reply via email to