From 244a04def30f38b3fb52b59a4173a87f628e1463 Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 19 Jan 2009 17:14:40 +0000 Subject: fix on check_and_create_svn_repo git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@763 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index b695337..254c81d 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -940,13 +940,13 @@ function check_and_create_svn_repo { local repository repository_type repository_path - repository_type="`echo $repository | cut -d : -f 1`" - repository_path="`echo $repository | cut -d : -f 2`" - if ! echo $repository | grep -q ":"; then repository="file://$repository" fi + repository_type="`echo $repository | cut -d : -f 1`" + repository_path="`echo $repository | cut -d : -f 2`" + if [ "$repository_type" == "file" ] && [ ! -d "$repository_path" ]; then echo "Creating subversion repository $repository..." mkdir -p `dirname $repository_path` -- cgit v1.2.3