I'm trying to work out how to compare the current openSuSE version number to a preset value.
I've got the current version of the installed OS in $VERSION_ID
I'm now trying to work out how to compare that to '42.3'. So if the value isn't greater than or equal to quit.
if [ ! "$VERSION_ID" -ge 42.3 ]; then
echo "Sorry Bye";
fi
I'm getting:
[: 42.3: integer expression expected
But I don't know how to fix that
Any advise please Thanks