mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-27 05:08:35 -06:00
Only download patches once
This commit is contained in:
parent
138e99f791
commit
b13a85e7dc
1 changed files with 1 additions and 2 deletions
|
@ -89,11 +89,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Main
|
## Main
|
||||||
|
req "https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json" patches.json
|
||||||
for apk in "${!apks[@]}"; do
|
for apk in "${!apks[@]}"; do
|
||||||
if [ ! -f $apk ]; then
|
if [ ! -f $apk ]; then
|
||||||
echo "Downloading $apk" | tee -a build.log
|
echo "Downloading $apk" | tee -a build.log
|
||||||
req "https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json" patches.json
|
|
||||||
supported_vers="$(jq -r '.[].compatiblePackages[] | select(.name == "'$apk'") | .versions | last' patches.json)"
|
supported_vers="$(jq -r '.[].compatiblePackages[] | select(.name == "'$apk'") | .versions | last' patches.json)"
|
||||||
version=0
|
version=0
|
||||||
for vers in $supported_vers; do
|
for vers in $supported_vers; do
|
||||||
|
|
Loading…
Reference in a new issue