From 71a315284088e4ae52df6bf61e960a4d716d377d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 11 Oct 2022 20:48:14 -0500 Subject: [PATCH] Updated README.md --- README.md | 7 +++++-- download_apkmirror.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a05eaf9..f6ba913 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ # Revanced Build -This repo template will allow one to build [ReVanced](https://github.com/revanced/) apps automatically. It uses [telegram.sh](https://github.com/fabianonline/telegram.sh) and [telegram-upload](https://github.com/Nekmo/telegram-upload) to messages. +This repo template will allow one to build [ReVanced](https://github.com/revanced/) apps automatically. It uses [telegram.sh](https://github.com/fabianonline/telegram.sh) and [telegram-upload](https://github.com/Nekmo/telegram-upload) to messages. Make sure that `Java 17` is installed and selected as default. ## How to use -Just run `./build_revanced (force/clean/experimental)`. Might be a good idea to set it up to run periodically using cron. +Just run `./build_revanced (force/clean/experimental)`. Might be a good idea to set it up to run periodically using cron. I currently use the following in a user crontab: +``` +0 6 * * * +``` ## Notes - The script will download the **automatically selected compatible version** (using compatibility of patches as listed [here](https://github.com/revanced/revanced-patches#list-of-available-patches)) of Youtube on APKMirror, **NOT** latest official version on Google Play. diff --git a/download_apkmirror.sh b/download_apkmirror.sh index 14f59ab..4da1c45 100755 --- a/download_apkmirror.sh +++ b/download_apkmirror.sh @@ -104,6 +104,6 @@ for apk in "${!apks[@]}"; do fi done version_present=$(jq -r ".\"$apk\"" versions.json) - [[ ${version_present//[!0-9]/} -lt ${version//[!0-9]/} ]] && ${apks[$apk]} || echo "Recommended version of "$apk" already present" | tee -a build.log + [[ ${version_present//[!0-9]/} -lt ${version//[!0-9]/} ]] && ${apks[$apk]} || echo "Recommended version of "$apk" is already present" | tee -a build.log fi done