Skip to content

Commit

Permalink
stdout array lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlibuit committed Mar 2, 2021
1 parent 4eb5bdf commit a643018
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/task_se_pub_repo_submission.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ task compile {
vadr_array=(~{sep=' ' vadr_num_alerts})
vadr_array_len=$(echo "${#vadr_array[@]}")

# Ensure assembly, meta, and vadr arrays are of equal length
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
Expand Down

0 comments on commit a643018

Please sign in to comment.