From b13a85e7dc94fb6dde48b196935a2b1f372cadef Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 12 Oct 2022 20:05:25 -0500 Subject: [PATCH] Only download patches once --- download_apkmirror.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/download_apkmirror.sh b/download_apkmirror.sh index 4da1c45..d64900b 100755 --- a/download_apkmirror.sh +++ b/download_apkmirror.sh @@ -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