Browse Source

[1144] cleanall.sh re-done w/o non-POSIX find options

Dima Volodin 13 years ago
parent
commit
a9ddfa91f8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/system/cleanall.sh

+ 4 - 1
tests/system/cleanall.sh

@@ -27,7 +27,10 @@ find . -type f \( \
 
 status=0
 
-for d in `find . -type d -maxdepth 1 -mindepth 1 -print`
+for d in ./.* ./*
 do
+   case $d in ./.|./..) continue ;; esac
+   test -d $d || continue
+
    test ! -f $d/clean.sh || ( cd $d && sh clean.sh )
 done