aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:41:11 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:41:11 +0000
commit5eb15a17ea1cd24b615d7da6e3125669620d1d82 (patch)
tree223b0c5374e95c0cc544e3a7509c8f71561636a0 /trunk/lib/common.sh
parent21c21e0474237ddf55c816b1c9179547ac75e09f (diff)
downloadsimplepkg-5eb15a17ea1cd24b615d7da6e3125669620d1d82.tar.gz
simplepkg-5eb15a17ea1cd24b615d7da6e3125669620d1d82.tar.bz2
fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@585 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 27d329f..c7d0a76 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -677,9 +677,11 @@ function svn_remove_empty_folders {
return 1
fi
+ local main_folder search results
+
main_folder="$1"
search="`find $main_folder -type d | grep -v '/.svn' | sed '1d'`"
- results="`echo $search | wc -l`"
+ results="`echo $search | wc -w`"
if [ "$results" -eq "0" ]; then
svn_del $folder