]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Fix comparison
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 11 Apr 2023 02:00:51 +0000 (14:00 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:32 +0000 (13:52 +0000)
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>
testprogs/blackbox/common_test_fns.inc

index 4b9a6a481aa11ee2531d7d62a937877993594d51..5984a0c91a265aa9035c2fe4bd5d95d2858c2292 100755 (executable)
@@ -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