fix: Increase curl max-time to 15 seconds for connectivity check

This commit is contained in:
RJ Johnston 2025-02-03 18:31:59 -05:00
parent aa49dcf32c
commit 55b6c81eca

View File

@ -299,7 +299,7 @@ function _check_internet() {
tput civis # hide cursor
# run check in background
( curl -Is --connect-timeout 3 --max-time 5 https://github.com | head -n 1 | grep "HTTP/2 200" >/dev/null ) &
( curl -Is --connect-timeout 3 --max-time 15 https://github.com | head -n 1 | grep "HTTP/2 200" >/dev/null ) &
local pid=$!
# display spinner while curl runs