Skip to content

Commit a8e976a

Browse files
authored
Merge pull request #2227 from YourCharge/fixSecondaryStuckWhenNoNetwork
Use --connect-timeout 3 in setup_network.sh : check_internet_connection
2 parents 2cce717 + bb4443c commit a8e976a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runs/setup_network.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function setup_pnp_network() {
6363
}
6464

6565
function check_internet_connection() {
66-
if curl -s --head --request GET "https://www.github.com" >/dev/null; then
66+
if curl -s --head --connect-timeout 3 --request GET "https://www.github.com" >/dev/null; then
6767
echo "Internet connection is up"
6868
else
6969
echo "ERROR: no internet connection!"

0 commit comments

Comments
 (0)