diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-04-11 14:00:51 +1200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-04-12 13:52:32 +0000 |
commit | b1df85e7d30c59eeb37c243d88efcab8e3d1f9a6 (patch) | |
tree | e7bc00ba8fdfeccbc444c298e88bd34766ad918a | |
parent | e0db10cfc387bce669491046d5c52bfc8d1a1ba1 (diff) | |
download | samba-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-x | testprogs/blackbox/common_test_fns.inc | 2 |
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 |