This commit is contained in:
Fioren
2024-11-11 09:02:59 +07:00
committed by GitHub
parent 6b96e9a062
commit 3dcbd89dbe

View File

@@ -2,7 +2,7 @@
# Check github connection stable or not:
check_connection() {
wget -q $(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/latest" | jq -r '.assets[] | select(.name == test("^.*\\\.rvp$")) | .browser_download_url') || rm -f "patches.json"
wget -q $(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/latest" | jq -r '.assets[] | select(.name | test("^.*\\.rvp$")) | .browser_download_url') || rm -f "*.rvp"
if [ -f *.rvp ]; then
echo "internet_error=0" >> $GITHUB_OUTPUT
echo -e "\e[32mGithub connection OK\e[0m"