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