]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
testing svn_remove_empty_folders
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 13:24:32 +0000 (13:24 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 13:24:32 +0000 (13:24 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@593 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 0d8738e167cfc0df118effe58cccb7231e4453f3..c5fd2e790db737202addf47eedd27b376feb4f42 100644 (file)
@@ -677,7 +677,7 @@ function svn_remove_empty_folders {
     return 1
   fi
 
-  for folder in `find $1 -type d -print | grep -v "/\.svn"`; do
+  for folder in `find $1 -type d -print | grep -v "/\.svn" | sort -r`; do
     if [ "`ls -A -1 $folder | grep -v .svn | wc -l`" -eq "0" ]; then
       svn_del $folder
     fi