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,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 == "patches.json") | .browser_download_url')
|
||||
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"
|
||||
if [ -f patches.json ]; then
|
||||
echo "internet_error=0" >> $GITHUB_OUTPUT
|
||||
echo -e "\e[32mGithub connection OK\e[0m"
|
||||
@@ -11,4 +11,4 @@ check_connection() {
|
||||
echo -e "\e[31mGithub connection not stable!\e[0m"
|
||||
fi
|
||||
}
|
||||
check_connection
|
||||
check_connection
|
||||
|
||||
Reference in New Issue
Block a user