-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
update-bash issues #48193
Comments
@bfontaine @xu-cheng I'm not sure how best to address either of these; thoughts? |
I’m not sure either right now 😕 |
Could possibly do something super simple like: ping -c 2 8.8.8.8 &> /dev/null || echo "Update cannot be run offline!"; exit 1 The chance of Edit - You couldn't stick an if ! ping -c 2 8.8.8.8 &> /dev/null
then
echo "Update cannot be run offline!"
exit 1
fi Edit to the edit -
|
@DomT4 Good idea; we might want to |
@bfontaine I was thinking about that but Github is consistently twice as slow to respond to a header request as Debian is. We're talking 0.3 and 0.6 seconds where the connection is available, so not huge numbers, so we may not care. |
Filed a PR for review. Easier to discuss real ideas which can be pulled/tested than theoretical ideas, etc. |
As @xu-cheng reported it prints a bunch of error messages if you
^C
it:You also get a bunch of error messages (one per tap I guess) if you’re not connected to the Internet:
The text was updated successfully, but these errors were encountered: