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

trunk/lib/common.sh

index 35b2de799b36e8f4d46dd185833e0c6ab35ad0d4..14b4646c2ef0651e6d0b39cb142d8f41cb76a485 100644 (file)
@@ -681,7 +681,7 @@ function svn_remove_empty_folders {
 
   main_folder="$1"
   search="`find $main_folder -type d | grep -v '/.svn' | sed '1d'`"
-  results="`echo "$search" | wc -l`"
+  results="`echo "$search" | wc -w`" # folders can't have space, slackware compliance
 
   if [ "$results" -eq "0" ]; then
     if [ "`find $main_folder -not -type d | wc -l`" -eq "0" ]; then
@@ -693,6 +693,10 @@ function svn_remove_empty_folders {
     done
   fi
 
+  if [ "`find $main_folder -not -type d | wc -l`" -eq "0" ]; then
+    svn_del $folder
+  fi
+
 }
 
 # -----------------------------------------------