aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
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