diff --git a/bin/tests/system/cleanall.sh b/bin/tests/system/cleanall.sh index 7d25964abd..fc4c013bbe 100644 --- a/bin/tests/system/cleanall.sh +++ b/bin/tests/system/cleanall.sh @@ -35,5 +35,5 @@ status=0 for d in $SUBDIRS do test ! -f $d/clean.sh || ( cd $d && sh clean.sh ) - find $d -type d -exec rmdir '{}' \; 2> /dev/null + test -d $d && find $d -type d -exec rmdir '{}' \; 2> /dev/null done