[COMMITTED] tests/thread-safety-subr.sh: Change if [[ ]] to if [ ]
Mark Wielaard
mark@klomp.org
Wed Mar 26 22:59:16 GMT 2025
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 | 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
More information about the Elfutils-devel
mailing list