From d2df667c0ab4bfee2293c1b3e991d50503fc8567 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 24 May 2011 12:35:23 +0200 Subject: Fixed git@ vs git: --- opentox-webservices.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opentox-webservices.sh b/opentox-webservices.sh index 618404c..fa589cd 100755 --- a/opentox-webservices.sh +++ b/opentox-webservices.sh @@ -40,7 +40,11 @@ mkdir -p "$WWW_DEST/opentox" >>$LOG 2>&1 cd "$WWW_DEST/opentox" >>$LOG 2>&1 for s in compound dataset algorithm model toxcreate task validation; do rm -rf "$s" >>$LOG 2>&1 - $GIT clone "git@github.com:opentox/$s.git" "$s" >>$LOG 2>&1 + if [ "$OT_BRANCH" = "development" ] || expr match "$OT_BRANCH" "release"; then + $GIT clone "git@github.com:opentox/$s.git" "$s" >>$LOG 2>&1 + else + $GIT clone "git://github.com/opentox/$s.git" "$s" >>$LOG 2>&1 + fi cd "$s" >>$LOG 2>&1 $GIT checkout -b $OT_BRANCH origin/$OT_BRANCH >>$LOG 2>&1 #rm -rf public >>$LOG 2>&1 -- cgit v1.2.3