mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
0c931fb301
commit
9a32c8087a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user