This commit is contained in:
Fioren
2024-11-11 08:46:03 +07:00
committed by GitHub
parent 720646f334
commit bf30707b38

View File

@@ -2,8 +2,8 @@
# 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 == "patches.json") | .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 patches.json ]; 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"
else else