6 # make sure this is not a subversion or CVS directory.
7 if [[ $i =~ .*\.svn.* || $i =~ .*CVS.* ]]; then
8 #echo directory matched svn or cvs folder
12 # only operate on existent dirs.
13 if [ ! -d "$i" ]; then
17 entries=($(ls -1 "$i"))
18 ent_len=${#entries[*]}
19 #echo dir $i has entries:
22 if [ $ent_len -eq 0 ]; then
23 # this directory has nothing!
24 #echo "has zero ents!"