mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-30 06:34:27 +02:00
fix get_patch_last_supported_ver
This commit is contained in:
parent
3a6a30f02a
commit
b22973b3c5
2
utils.sh
2
utils.sh
@ -228,7 +228,7 @@ get_patch_last_supported_ver() {
|
|||||||
ver=$(sed -n "/^Name: $line\$/,/^\$/p" <<<"$op" | sed -n "/^Compatible versions:\$/,/^\$/p" | tail -n +2)
|
ver=$(sed -n "/^Name: $line\$/,/^\$/p" <<<"$op" | sed -n "/^Compatible versions:\$/,/^\$/p" | tail -n +2)
|
||||||
vers=${ver}${NL}
|
vers=${ver}${NL}
|
||||||
done <<<"$(list_args "$inc_sel")"
|
done <<<"$(list_args "$inc_sel")"
|
||||||
vers=$(xargs <<<"$vers")
|
vers=$(awk '{$1=$1}1' <<<"$vers")
|
||||||
if [ "$vers" ]; then
|
if [ "$vers" ]; then
|
||||||
get_highest_ver <<<"$vers"
|
get_highest_ver <<<"$vers"
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user