From: Mark Wielaard Date: Wed, 26 Mar 2025 22:50:57 +0000 (+0100) Subject: tests/thread-safety-subr.sh: Change if [[ ]] to if [ ] X-Git-Tag: elfutils-0.193~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bebc2e63918ce46a30a159491b9993d65c3b35a;p=thirdparty%2Felfutils.git tests/thread-safety-subr.sh: Change if [[ ]] to if [ ] 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 --- diff --git a/tests/thread-safety-subr.sh b/tests/thread-safety-subr.sh index 1024df02..90d9d984 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