Use correct index in version evaluation
Given examples “10.6.12-MariaDB”, “10.5.18-MariaDB-log” and "10.11.2-MariaDB-log" the $tokens[1]
will always be “MariaDB”, which isn’t what we’re looking for.
Meanwhile using $tokens[0]
we’ll most likely get the part we’re looking for, that is “10.6.12”, “10.5.18” and "10.11.2” respectively.
This PR fixes ticket: https://discord.com/channels/383071796032831488/1100499029223276636
Edited by Anatoli Nicolae