summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-22 13:13:54 +0100
committerAndreas Schneider <asn@cryptomilk.org>2022-12-23 14:35:31 +0000
commit9a32c8087a6ecd2aaa46e3f7728c99f862f553a1 (patch)
tree86d32c8af5b48043dbb2dbdd2a264a72a579eef6 /testprogs
parent0c931fb301c5137668db671a6d861c5b5769aa18 (diff)
downloadsamba-9a32c8087a6ecd2aaa46e3f7728c99f862f553a1.tar.gz
testprogs: Fix remove_directory()
common_test_fns.inc: line 121: [: too many arguments Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-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 68465e1e61a..a9e94b82e99 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" ] || [ ! $(ls -A "$xdir") ]; then
+ if [ "$xdir" == "/" ] || [ ! -d "$xdir" ] || [ -z "$(ls -A "$xdir")" ]; then
return
fi