18e7e5d0339f3491a6c0324e2443415309b56173

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

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

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index 149500aa9ef65de0131b482965c5f8cb1b3ebed1..009c273faee436832c0e638c7881c7f1a08c78d4 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -65,7 +65,7 @@ function is_update_available() {
 6   local remote_head
 7   remote_head=$(
 8     if (( ${+commands[curl]} )); then
 9-      curl -m 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
10+      curl --conect-timeout 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
11     elif (( ${+commands[wget]} )); then
12       wget -T 2 -O- --header='Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
13     elif (( ${+commands[fetch]} )); then