This commit is contained in:
Fioren
2024-11-11 08:47:07 +07:00
committed by GitHub
parent bf30707b38
commit 6b96e9a062

View File

@@ -2,7 +2,7 @@
# Check github connection stable or not: # Check github connection stable or not:
check_connection() { 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 "patches.json"
if [ -f *.rvp ]; then if [ -f *.rvp ]; then
echo "internet_error=0" >> $GITHUB_OUTPUT echo "internet_error=0" >> $GITHUB_OUTPUT
echo -e "\e[32mGithub connection OK\e[0m" echo -e "\e[32mGithub connection OK\e[0m"