aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:56:13 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:56:13 +0000
commit7276662621bb79f86a349417fcf0cbdef3c38193 (patch)
tree43205709c2715298c5902f0449ac03885f339375 /trunk/lib/common.sh
parent007e7d80f83574e89058bb9fc67dafd911d1c05f (diff)
downloadsimplepkg-7276662621bb79f86a349417fcf0cbdef3c38193.tar.gz
simplepkg-7276662621bb79f86a349417fcf0cbdef3c38193.tar.bz2
fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@587 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 35b2de7..14b4646 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -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
+
}
# -----------------------------------------------