fix(updater): use `curl --connect-timeout` in new update check

This commit is contained in:
Marc Cornellà 2022-06-01 09:11:49 +02:00
parent e9e8c6b54d
commit 18e7e5d033
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function is_update_available() {
local remote_head
remote_head=$(
if (( ${+commands[curl]} )); then
curl -m 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
curl --conect-timeout 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
elif (( ${+commands[wget]} )); then
wget -T 2 -O- --header='Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
elif (( ${+commands[fetch]} )); then