fix(installation): loop to max_len-1

avoid `i` going outside range of array indices
This commit is contained in:
Alexander Gill 2023-02-11 23:18:34 +00:00
parent 0ea42f60bd
commit 4bdd3c036b

View File

@ -99,7 +99,7 @@ function vercomp() {
done
fi
for i in `seq 0 $max_len`
for i in `seq 0 $((max_len-1))`
do
# Fill empty fields with zeros in v1
if [ -z "${v1[$i]}" ]