mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
format
This commit is contained in:
parent
ecd919d176
commit
638dd24874
10
utils.sh
10
utils.sh
@ -120,8 +120,8 @@ config_update() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
sources[$PATCHES_SRC]=0
|
sources[$PATCHES_SRC]=0
|
||||||
if ! last_patches=$(gh_req "https://api.github.com/repos/${PATCHES_SRC}/releases/latest" - \
|
if ! last_patches=$(gh_req "https://api.github.com/repos/${PATCHES_SRC}/releases/latest" - |
|
||||||
| jq -e -r '.assets[] | select(.name | endswith("jar")) | .name'); then
|
jq -e -r '.assets[] | select(.name | endswith("jar")) | .name'); then
|
||||||
abort oops
|
abort oops
|
||||||
fi
|
fi
|
||||||
cur_patches=$(sed -n "s/.*Patches: ${PATCHES_SRC%%/*}\/\(.*\)/\1/p" build.md | xargs)
|
cur_patches=$(sed -n "s/.*Patches: ${PATCHES_SRC%%/*}\/\(.*\)/\1/p" build.md | xargs)
|
||||||
@ -216,9 +216,9 @@ dl_apkmirror() {
|
|||||||
node=$($HTMLQ "div.table-row.headerFont:nth-last-child($n)" -r "span:nth-child(n+3)" <<<"$resp")
|
node=$($HTMLQ "div.table-row.headerFont:nth-last-child($n)" -r "span:nth-child(n+3)" <<<"$resp")
|
||||||
if [ -z "$node" ]; then break; fi
|
if [ -z "$node" ]; then break; fi
|
||||||
app_table=$($HTMLQ --text --ignore-whitespace <<<"$node")
|
app_table=$($HTMLQ --text --ignore-whitespace <<<"$node")
|
||||||
if [ "$(sed -n 3p <<<"$app_table")" = "$apkorbundle" ] && { [ "$apkorbundle" = BUNDLE ] \
|
if [ "$(sed -n 3p <<<"$app_table")" = "$apkorbundle" ] && { [ "$apkorbundle" = BUNDLE ] ||
|
||||||
|| { [ "$apkorbundle" = APK ] && [ "$(sed -n 6p <<<"$app_table")" = "$dpi" ] \
|
{ [ "$apkorbundle" = APK ] && [ "$(sed -n 6p <<<"$app_table")" = "$dpi" ] &&
|
||||||
&& isoneof "$(sed -n 4p <<<"$app_table")" "${apparch[@]}"; }; }; then
|
isoneof "$(sed -n 4p <<<"$app_table")" "${apparch[@]}"; }; }; then
|
||||||
dlurl=$($HTMLQ --base https://www.apkmirror.com --attribute href "div:nth-child(1) > a:nth-child(1)" <<<"$node")
|
dlurl=$($HTMLQ --base https://www.apkmirror.com --attribute href "div:nth-child(1) > a:nth-child(1)" <<<"$node")
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user