From eb94d8066b3f8c26fdc65c6a92d63aaedf33f804 Mon Sep 17 00:00:00 2001 From: HNHalstead <47102761+HNHalstead@users.noreply.github.com> Date: Tue, 13 Feb 2024 20:36:59 -0800 Subject: [PATCH] Update task_utilities.wdl --- tasks/utilities/task_utilities.wdl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/utilities/task_utilities.wdl b/tasks/utilities/task_utilities.wdl index c1b6c4e79..8db96e14b 100644 --- a/tasks/utilities/task_utilities.wdl +++ b/tasks/utilities/task_utilities.wdl @@ -293,9 +293,11 @@ task scatter_by_clade { mkdir files_dir - if [[ -v ~{sep=' ' unique_clusters} ]] + + clust=~{sep=' ' unique_clusters} + + if [[ -v $clust ]] then - clust = ~{sep=' ' unique_clusters} echo ${clust[${clust_idx}]} | tee CLUSTER fi