summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2022-07-03 20:48:55 -0400
committerTuowen Zhao <ztuowen@gmail.com>2022-07-03 20:48:55 -0400
commit6e0a7765188ef970d738108d11eaecc7b79a5f5e (patch)
tree01712cef5fe2cc74a8bceb2abc2e54ca2c54aff1 /tools
parent901674e84756d64024cdc70f9590c3557c6d92d6 (diff)
parent4c82a2eedf0c43d47601ffa8b0303ed1326fab8f (diff)
downloadzsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.gz
zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.bz2
zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.zip
Merge remote-tracking branch 'github/master'
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