Skip to content

Commit

Permalink
api: add check for github connection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Aug 27, 2023
1 parent 4c2c121 commit 8c08dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 8c08dfd

Please sign in to comment.