aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:50:05 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:50:05 +0000
commit007e7d80f83574e89058bb9fc67dafd911d1c05f (patch)
tree8d90069db8aa9223e5c5de308377a5fd05bdb31d /trunk
parent5eb15a17ea1cd24b615d7da6e3125669620d1d82 (diff)
downloadsimplepkg-007e7d80f83574e89058bb9fc67dafd911d1c05f.tar.gz
simplepkg-007e7d80f83574e89058bb9fc67dafd911d1c05f.tar.bz2
fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@586 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r--trunk/lib/common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index c7d0a76..35b2de7 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -681,10 +681,12 @@ function svn_remove_empty_folders {
main_folder="$1"
search="`find $main_folder -type d | grep -v '/.svn' | sed '1d'`"
- results="`echo $search | wc -w`"
+ results="`echo "$search" | wc -l`"
if [ "$results" -eq "0" ]; then
- svn_del $folder
+ if [ "`find $main_folder -not -type d | wc -l`" -eq "0" ]; then
+ svn_del $folder
+ fi
else
for folder in $search; do
svn_remove_empty_folders $folder