]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix on check_and_create_svn_repo
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 17:14:40 +0000 (17:14 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 19 Jan 2009 17:14:40 +0000 (17:14 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@763 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index b69533742d2e3d72f9910cb34a24995d4bac9f7b..254c81df1d098e98f58dff5525d785b85a943daf 100644 (file)
@@ -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`