From: rhatto Date: Fri, 28 Nov 2008 15:11:39 +0000 (+0000) Subject: fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=990e65cdfd4539143968b4e85d7badd2ef42c2ec;p=simplepkg.git fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@600 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 8f78468..83eec65 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -669,7 +669,7 @@ function svn_remove_empty_folders { fi for folder in `find $1 -type d -print | grep -v "/\.svn" | sort -r`; do - if [ "`ls -A -1 $folder | grep -v .svn | wc -l`" -eq "0" ]; then + if [ "`ls -A -1 $folder | grep -v -e '^\.svn' | wc -l`" -eq "0" ]; then svn_del $folder fi done