From e503ee663ac296e97dda28043f9886098f3fca0c Mon Sep 17 00:00:00 2001 From: Fioren <102145692+FiorenMas@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:33:12 +0700 Subject: [PATCH] fix :bug: --- src/etc/connection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/connection.sh b/src/etc/connection.sh index 45dacbc..baf0898 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 == "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 \ No newline at end of file +check_connection