]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 03:58:51 +0000 (03:58 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 03:58:51 +0000 (03:58 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@588 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 14b4646c2ef0651e6d0b39cb142d8f41cb76a485..39c6fcd1db5044b5eb7059901ff207154f7bcd42 100644 (file)
@@ -685,7 +685,7 @@ function svn_remove_empty_folders {
 
   if [ "$results" -eq "0" ]; then
     if [ "`find $main_folder -not -type d | wc -l`" -eq "0" ]; then
-      svn_del $folder
+      svn_del $main_folder
     fi
   else
     for folder in $search; do
@@ -693,10 +693,6 @@ function svn_remove_empty_folders {
     done
   fi
 
-  if [ "`find $main_folder -not -type d | wc -l`" -eq "0" ]; then
-    svn_del $folder
-  fi
-
 }
 
 # -----------------------------------------------