mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
fix
This commit is contained in:
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
# 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 "*.rvp"
|
wget -q $(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/tags/v4.17.0" | jq -r '.assets[] | select(.name == "patches.json") | .browser_download_url') || rm -f "patches.json"
|
||||||
if [ -f *.rvp ]; then
|
if [ -f patches.json ]; 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"
|
||||||
|
rm -f "patches.json"
|
||||||
else
|
else
|
||||||
echo "internet_error=1" >> $GITHUB_OUTPUT
|
echo "internet_error=1" >> $GITHUB_OUTPUT
|
||||||
echo -e "\e[31mGithub connection not stable!\e[0m"
|
echo -e "\e[31mGithub connection not stable!\e[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user