From dba2aac6da3872173c946b625dccc7dbe428ad59 Mon Sep 17 00:00:00 2001 From: Tomoya Tanjo Date: Thu, 4 Apr 2024 16:01:13 +0900 Subject: [PATCH] Update cloneCWL.sh for cwl-v1.1 and cwl-v1.2 --- .devcontainer/cloneCWL.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.devcontainer/cloneCWL.sh b/.devcontainer/cloneCWL.sh index ff46cb9..3793be2 100755 --- a/.devcontainer/cloneCWL.sh +++ b/.devcontainer/cloneCWL.sh @@ -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