mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -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
|
||||
|
||||
## Main
|
||||
|
||||
req "https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json" patches.json
|
||||
for apk in "${!apks[@]}"; do
|
||||
if [ ! -f $apk ]; then
|
||||
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)"
|
||||
version=0
|
||||
for vers in $supported_vers; do
|
||||
|
|
Loading…
Reference in a new issue