Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
Hikarie Fukirei 2026-02-08 00:20:50 +07:00
commit bd750e2097

View file

@ -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"