diff --git a/src/etc/connection.sh b/src/etc/connection.sh index 15a3156..c54a75c 100644 --- a/src/etc/connection.sh +++ b/src/etc/connection.sh @@ -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"