Skip to content

Commit

Permalink
Update cloneCWL.sh for cwl-v1.1 and cwl-v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Apr 4, 2024
1 parent c213f3d commit dba2aac
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .devcontainer/cloneCWL.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#!/bin/sh

test -d cwl-v1.0 || git clone --depth 1 https://github.com/common-workflow-language/common-workflow-language.git cwl-v1.0
CWL_BASE_URL=https://github.com/common-workflow-language

if [ -d cwl-v1.0 ]; then
git -C cwl-v1.0 pull
else
git clone --depth 1 $CWL_BASE_URL/common-workflow-language.git cwl-v1.0
fi

if [ -d cwl-v1.1 ]; then
git -C cwl-v1.1 pull
else
git clone --depth 1 $CWL_BASE_URL/cwl-v1.1.git cwl-v1.1
fi

if [ -d cwl-v1.2 ]; then
git -C cwl-v1.2 pull
else
git clone --depth 1 $CWL_BASE_URL/cwl-v1.2.git cwl-v1.2
fi

0 comments on commit dba2aac

Please sign in to comment.