Skip to content

Commit 4bdd3c0

Browse files
committed
fix(installation): loop to max_len-1
avoid `i` going outside range of array indices
1 parent 0ea42f6 commit 4bdd3c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function vercomp() {
9999
done
100100
fi
101101

102-
for i in `seq 0 $max_len`
102+
for i in `seq 0 $((max_len-1))`
103103
do
104104
# Fill empty fields with zeros in v1
105105
if [ -z "${v1[$i]}" ]

0 commit comments

Comments
 (0)