fix dl_apkmirror

This commit is contained in:
j-hc 2025-03-02 11:42:07 +03:00
parent c389a29817
commit 20827c3bf6
No known key found for this signature in database
GPG Key ID: CDF97F1DBFE904CD

View File

@ -318,7 +318,7 @@ dl_apkmirror() {
else else
if [ "$arch" = "arm-v7a" ]; then arch="armeabi-v7a"; fi if [ "$arch" = "arm-v7a" ]; then arch="armeabi-v7a"; fi
local resp node app_table uurl dlurl="" local resp node app_table uurl dlurl=""
uurl=$(grep -F "downloadLink" <<<"$__APKMIRROR_RESP__" | grep -F "${version//./-}-release/" | uurl=$(grep -F "downloadLink" <<<"$__APKMIRROR_RESP__" | grep -F "${version//./-}-release/" | head -1 |
sed -n 's;.*href="\(.*-release\).*;\1;p') sed -n 's;.*href="\(.*-release\).*;\1;p')
if [ -z "$uurl" ]; then url="${url}/${url##*/}-${version//./-}-release/"; else url=https://www.apkmirror.com$uurl; fi if [ -z "$uurl" ]; then url="${url}/${url##*/}-${version//./-}-release/"; else url=https://www.apkmirror.com$uurl; fi
resp=$(req "$url" -) || return 1 resp=$(req "$url" -) || return 1