From b1df85e7d30c59eeb37c243d88efcab8e3d1f9a6 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 11 Apr 2023 14:00:51 +1200 Subject: testprogs: Fix comparison SC2039: In POSIX sh, == in place of = is undefined. Signed-off-by: Joseph Sutton Reviewed-by: Andreas Schneider --- testprogs/blackbox/common_test_fns.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/common_test_fns.inc b/testprogs/blackbox/common_test_fns.inc index 4b9a6a481aa..5984a0c91a2 100755 --- a/testprogs/blackbox/common_test_fns.inc +++ b/testprogs/blackbox/common_test_fns.inc @@ -118,7 +118,7 @@ remove_directory() local xdir=${1} shift - if [ "$xdir" == "/" ] || [ ! -d "$xdir" ] || [ -z "$(ls -A "$xdir")" ]; then + if [ "$xdir" = "/" ] || [ ! -d "$xdir" ] || [ -z "$(ls -A "$xdir")" ]; then return fi -- cgit v1.2.1