Skip to content

Commit

Permalink
fix parameter parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Oct 23, 2023
1 parent b2843d0 commit 0b6fbbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pggb
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,11 @@ if [[ $vcf_spec != false ]]; then
for s in $( echo "$vcf_spec" | tr ',' ' ' );
do
ref=$(echo "$s" | cut -f 1 -d: )
pop_length=$(echo "$s" | cut -f 2 -d: )
if [[ "$s" == *":"* ]]; then
pop_length=$(echo "$s" | cut -f 2 -d: )
else
pop_length=""
fi
if [[ -z $pop_length ]]; then
pop_length=0
fi
Expand Down

0 comments on commit 0b6fbbd

Please sign in to comment.