From 9973daf68239354c55fdbfb1a5b65a5fe77e9389 Mon Sep 17 00:00:00 2001 From: dng-nguyn Date: Sun, 31 Dec 2023 23:56:29 +0700 Subject: [PATCH] Deletion of files on startup. --- run.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 13f66ef..0ffba41 100755 --- a/run.sh +++ b/run.sh @@ -1,10 +1,15 @@ #!/bin/bash ### PLEASE LOOK THROUGH THE SCRIPT BEFORE EXECUTING!!! ### +# Remove old files if present: +rm patch.jar cli.jar integrations.apk download.json yt.apk +rm -d downloads +# remove ReVanced cache +rm -rd revanced-resource-cache # Download patches, integrations and cli echo "Downloading files..." -curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O patch.jar -curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O cli.jar -curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | grep "browser_download_url.*.apk" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O integrations.apk +curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -i - -O patch.jar +curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -i - -O cli.jar +curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | grep "browser_download_url.*.apk" | cut -d : -f 2,3 | tr -d \" | wget -i - -O integrations.apk # Command to get the version echo "Getting version..."