From 8c08dfdd9dc1e17ae99cc54a3e5647de12d4e4d7 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Sun, 27 Aug 2023 14:37:23 -0500 Subject: [PATCH] api: add check for github connection failure --- api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api b/api index 8886c6ea5f..4562dfdd72 100755 --- a/api +++ b/api @@ -2055,7 +2055,7 @@ sudo apt purge --autoremove linux-image-*-arm64") fi #NON-APT ERRORS BELOW - if grep -qF "Could not resolve host: github.com" <<<"$errors" ;then + if grep -q "Could not resolve host: github\.com\|Failed to connect to github\.com port 443: Connection timed out" <<<"$errors" ;then error_caption+=("Failed to connect to github.com. Check your internet connection and try again.")