]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests/thread-safety-subr.sh: Change if [[ ]] to if [ ]
authorMark Wielaard <mark@klomp.org>
Wed, 26 Mar 2025 22:50:57 +0000 (23:50 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 26 Mar 2025 22:54:36 +0000 (23:54 +0100)
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 <mark@klomp.org>
tests/thread-safety-subr.sh

index 1024df02d19e2a48400fd113ddfaa5f32038019f..90d9d9845b436b5cb70c27705f55501000accd53 100644 (file)
@@ -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