From 45548c27e972f51ad71e9b95e17ebc8a2b08908a Mon Sep 17 00:00:00 2001
From: "W. Lee Pang" <wleepang@gmail.com>
Date: Thu, 26 Sep 2019 20:39:44 -0700
Subject: [PATCH] fix s3 project detection

---
 docs/orchestration/nextflow/nextflow-overview.md | 2 +-
 src/containers/nextflow/nextflow.aws.sh          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/orchestration/nextflow/nextflow-overview.md b/docs/orchestration/nextflow/nextflow-overview.md
index b6e4330dc..ad0830731 100644
--- a/docs/orchestration/nextflow/nextflow-overview.md
+++ b/docs/orchestration/nextflow/nextflow-overview.md
@@ -108,7 +108,7 @@ cd /opt/work/$GUID
 aws s3 sync --only-show-errors $NF_LOGSDIR/.nextflow .nextflow
 
 # stage workflow definition
-if [[ "$NEXTFLOW_PROJECT" =~ "^s3://.*" ]]; then
+if [[ "$NEXTFLOW_PROJECT" =~ ^s3://.* ]]; then
     aws s3 sync --only-show-errors --exclude 'runs/*' --exclude '.*' $NEXTFLOW_PROJECT ./project
     NEXTFLOW_PROJECT=./project
 fi
diff --git a/src/containers/nextflow/nextflow.aws.sh b/src/containers/nextflow/nextflow.aws.sh
index 8e10c7496..9c3b7c256 100644
--- a/src/containers/nextflow/nextflow.aws.sh
+++ b/src/containers/nextflow/nextflow.aws.sh
@@ -51,7 +51,7 @@ cd /opt/work/$GUID
 aws s3 sync --only-show-errors $NF_LOGSDIR/.nextflow .nextflow
 
 # stage workflow definition
-if [[ "$NEXTFLOW_PROJECT" =~ "^s3://.*" ]]; then
+if [[ "$NEXTFLOW_PROJECT" =~ ^s3://.* ]]; then
     aws s3 sync --only-show-errors --exclude 'runs/*' --exclude '.*' $NEXTFLOW_PROJECT ./project
     NEXTFLOW_PROJECT=./project
 fi