diff options
-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` |