diff options
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r-- | trunk/lib/common.sh | 4 |
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 |