summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-04-11 14:00:51 +1200
committerAndreas Schneider <asn@cryptomilk.org>2023-04-12 13:52:32 +0000
commitb1df85e7d30c59eeb37c243d88efcab8e3d1f9a6 (patch)
treee7bc00ba8fdfeccbc444c298e88bd34766ad918a
parente0db10cfc387bce669491046d5c52bfc8d1a1ba1 (diff)
downloadsamba-b1df85e7d30c59eeb37c243d88efcab8e3d1f9a6.tar.gz
testprogs: Fix comparison
SC2039: In POSIX sh, == in place of = is undefined. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
-rwxr-xr-xtestprogs/blackbox/common_test_fns.inc2
1 files changed, 1 insertions, 1 deletions
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