diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-19 17:14:40 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-19 17:14:40 +0000 |
commit | 244a04def30f38b3fb52b59a4173a87f628e1463 (patch) | |
tree | 1583f81a0445f65a7c8bc374a00a42f2fe7f5144 | |
parent | c0e0a18f2c071b15c16eeedda39fd440b95cbd36 (diff) | |
download | simplepkg-244a04def30f38b3fb52b59a4173a87f628e1463.tar.gz simplepkg-244a04def30f38b3fb52b59a4173a87f628e1463.tar.bz2 |
fix on check_and_create_svn_repo
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@763 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/lib/common.sh | 6 |
1 files 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` |