From da70a64ef988041341f3da85aafb8423537dc571 Mon Sep 17 00:00:00 2001 From: kevinlibuit Date: Tue, 2 Mar 2021 06:15:19 +0000 Subject: [PATCH] fix if statement syntax --- tasks/task_se_pub_repo_submission.wdl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tasks/task_se_pub_repo_submission.wdl b/tasks/task_se_pub_repo_submission.wdl index 1b92ef7a..e3f73434 100644 --- a/tasks/task_se_pub_repo_submission.wdl +++ b/tasks/task_se_pub_repo_submission.wdl @@ -218,15 +218,11 @@ task compile { vadr_array=(~{sep=' ' vadr_num_alerts}) vadr_array_len=$(echo "${#vadr_array[@]}") - echo "Assembly array length: $assembly_array_len" - echo "Meta array length: $meta_array_len" - echo "VADR array length: $vadr_array_len" - # Ensure assembly, meta, and vadr arrays are of equal length if [ "$assembly_array_len" -ne "$meta_array_len" ]; then echo "Assembly array (length: $assembly_array_len) and metadata array (length: $meta_array_len) are of unequal length." exit 1 - elif ["$assembly_array_len" -ne "$vadr_array_len" ]; then + elif [ "$assembly_array_len" -ne "$vadr_array_len" ]; then echo "Assembly array (length: $assembly_array_len) and metadata array (length: $vadr_array_len) are of unequal length." exit 1 fi