Use the variables we've made containing the separated version
components, rather than an undefined one
---
 lib/check_funcs.cygpart | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/check_funcs.cygpart b/lib/check_funcs.cygpart
index 07516be..bb35812 100644
--- a/lib/check_funcs.cygpart
+++ b/lib/check_funcs.cygpart
@@ -699,12 +699,12 @@ __version_at_least() {
        local -a have_va=(${have_v//[-\._]/ });
        local -i n=0;
 
-       while defined want_ver[${n}]
+       while defined want_va[${n}]
        do
-               if (( want_ver[n] < ${have_ver[${n}]:-0} ))
+               if (( want_va[n] < ${have_va[${n}]:-0} ))
                then
                        return 0;
-               elif (( want_ver[n] > ${have_ver[${n}]:-0} ))
+               elif (( want_va[n] > ${have_va[${n}]:-0} ))
                then
                        return 1;
                else
-- 
2.17.0

Reply via email to