just math it i cant logic smh retar
Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
parent
aba48e35b2
commit
0321f71fb0
1 changed files with 8 additions and 8 deletions
|
|
@ -87,10 +87,10 @@ for f in patches/*.sh ; do
|
|||
minminor="$(bb_split "$minver" '.' '1')"
|
||||
minpatch="$(bb_split "$minver" '.' '2')"
|
||||
|
||||
( [ "$(get_mb_ver '0')" -lt "$minmajor" ] || \
|
||||
[ "$(get_mb_ver '1')" -lt "$minminor" ] || \
|
||||
[ "$(get_mb_ver '2')" -le "$minpatch" ] \
|
||||
) && {
|
||||
[ "$(( \
|
||||
$(get_mb_ver 0) * 10000 + $(get_mb_ver 1) * 100 + $(get_mb_ver 2) ))" -lt \
|
||||
"$(( minmajor * 10000 + minminor * 100 + minpatch ))" \
|
||||
] && {
|
||||
info "[parser] skipping [$pname] as current version is lower than patch version clamp"
|
||||
continue ; }
|
||||
} || :
|
||||
|
|
@ -105,10 +105,10 @@ for f in patches/*.sh ; do
|
|||
maxminor="$(bb_split "$maxver" '.' '1')"
|
||||
maxpatch="$(bb_split "$maxver" '.' '2')"
|
||||
|
||||
( [ "$(get_mb_ver '0')" -gt "$maxmajor" ] || \
|
||||
[ "$(get_mb_ver '1')" -gt "$maxminor" ] || \
|
||||
[ "$(get_mb_ver '2')" -ge "$maxpatch" ] \
|
||||
) && {
|
||||
[ "$(( \
|
||||
$(get_mb_ver 0) * 10000 + $(get_mb_ver 1) * 100 + $(get_mb_ver 2) ))" -gt \
|
||||
"$(( maxmajor * 10000 + maxminor * 100 + maxpatch ))" \
|
||||
] && {
|
||||
info "[parser] skipping [$pname] as current version is higher than patch version clamp"
|
||||
continue ; }
|
||||
} || :
|
||||
|
|
|
|||
Reference in a new issue