-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some redundancy for no internet connection check #743
Conversation
Very nice! I didn't know the fix would be this straightforward. This issue has been brought up by various users, it's to do with the ISP blocking the call and not archlinux blocking it. I can't find the issue now but apparently sometimes on some connections, While this fix works, I am wondering if we should do this in other places. If I recall there are checks for pinging GitHub specifically, but perhaps we could include this check in other places as well, like on line Thank you very much for your contribution! :-) |
yeah I dont know about the other places, at first glance it seemed like those needed the website they were pinging whereas this one definitely didn't |
No worries, we can leave this check just for the Steam Deck internet connection check. Merging now, thanks! |
up to you though, as you said its a simple addition as long as you intend for the result to be "success if I can ping either website" |
There was a slight regression introduced as part of this change (SC1105). I fixed it in #743 by changing the syntax to the following and confirming that it still worked as expected on my shell: Just a small thing :-) I highly recommend using ShellCheck in general to vet Bash scripts. Unfortunately 0.9.0 seems to have introduced a regression (koalaman/shellcheck#2652), so 0.8.0 has to be used for some projects including SteamTinkerLaunch. It's a really nice tool though! |
@sonic2kk that changes the logic. instead it should be
we need to but the "not" symbol outside the "or" block to ensure we are logically requiring (logically equivalent to) both archlinux and google not being able to be pinged. See this simple test as a demonstration:
This option passes shellcheck. |
Was going through the install process for someone and they kept getting this No internet connection error message. Maybe the archlinux.org site was blocking ping? Nice to have some redundancy with another domain here since it's not actually dependent on that website. I tested and the fix works. Here's the error we saw (multiple tries same result):