diff --git a/MBCPApp/parse.sh b/MBCPApp/parse.sh index 3062632..a3559cc 100644 --- a/MBCPApp/parse.sh +++ b/MBCPApp/parse.sh @@ -87,8 +87,8 @@ for f in patches/*.sh ; do minminor="$(bb_split "$minver" '.' '1')" minpatch="$(bb_split "$minver" '.' '2')" - ( [ "$(get_mb_ver '0')" -ge "$minmajor" ] && \ - [ "$(get_mb_ver '1')" -ge "$minminor" ] && \ + ( ( [ "$(get_mb_ver '0')" -ge "$minmajor" ] && \ + [ "$(get_mb_ver '1')" -gt "$minminor" ] ) || \ [ "$(get_mb_ver '2')" -gt "$minpatch" ] \ ) || { info "[parser] skipping [$pname] as current version is lower than patch version clamp" @@ -105,8 +105,8 @@ for f in patches/*.sh ; do maxminor="$(bb_split "$maxver" '.' '1')" maxpatch="$(bb_split "$maxver" '.' '2')" - ( [ "$(get_mb_ver '0')" -le "$maxmajor" ] && \ - [ "$(get_mb_ver '1')" -le "$maxminor" ] && \ + ( ( [ "$(get_mb_ver '0')" -le "$maxmajor" ] && \ + [ "$(get_mb_ver '1')" -lt "$maxminor" ] ) || \ [ "$(get_mb_ver '2')" -lt "$maxpatch" ] \ ) || { info "[parser] skipping [$pname] as current version is higher than patch version clamp"