diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-24 12:35:23 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-24 12:35:23 +0200 |
commit | d2df667c0ab4bfee2293c1b3e991d50503fc8567 (patch) | |
tree | 086d8cbeb34996f459ec14dc9c3e924d00df946f /opentox-webservices.sh | |
parent | 0a15ffb5f287956fd551cc0d4628b2f5fc04bef7 (diff) |
Fixed git@ vs git:
Diffstat (limited to 'opentox-webservices.sh')
-rwxr-xr-x | opentox-webservices.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |