I want to want to compare version of a plugin.
The idea is to have something like this
version1="6.1.0"
version2="7.1.1"
if [ $version1 > $version2 ];then
echo $version1 is greater than $version2;
else
echo $version1 is less than $version2;
fi
this does not work of course.
I have tried some tips shared on net but anything suits to my needs.
If someone has an idea on how to do this, it will be awesome.
Thank you in advane