Merge branch 'fix-version-check-tool' into 'master'

tools: bootstrap: fix version checking algorithm

See merge request videolan/vlc!3471
This commit is contained in:
Khalid Masum 2024-04-28 07:10:54 +00:00
commit 125bf190e3
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ check_version() {
needminor=`echo $3|cut -d. -f2`
needmicro=`echo $3|cut -d. -f3`
[ -z "$needmicro" ] && needmicro=0
if [ "$needmajor" -ne "$gotmajor" ] ||
if [ "$needmajor" -gt "$gotmajor" ] ||
[ "$needmajor" -eq "$gotmajor" -a "$needminor" -gt "$gotminor" ] ||
[ "$needmajor" -eq "$gotmajor" -a "$needminor" -eq "$gotminor" -a "$needmicro" -gt "$gotmicro" ];
then