summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-06-01 09:11:49 +0200
committerMarc Cornellà <hello@mcornella.com>2022-06-01 09:11:49 +0200
commit18e7e5d0339f3491a6c0324e2443415309b56173 (patch)
tree0a57b7a8b264c075b80002e02387eae8fd4afa07 /tools
parente9e8c6b54d594109041bdd4bc3902b40f9ae8849 (diff)
downloadzsh-18e7e5d0339f3491a6c0324e2443415309b56173.tar.gz
zsh-18e7e5d0339f3491a6c0324e2443415309b56173.tar.bz2
zsh-18e7e5d0339f3491a6c0324e2443415309b56173.zip
fix(updater): use `curl --connect-timeout` in new update check
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 149500aa9..009c273fa 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -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