diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
commit | 6e0a7765188ef970d738108d11eaecc7b79a5f5e (patch) | |
tree | 01712cef5fe2cc74a8bceb2abc2e54ca2c54aff1 /tools | |
parent | 901674e84756d64024cdc70f9590c3557c6d92d6 (diff) | |
parent | 4c82a2eedf0c43d47601ffa8b0303ed1326fab8f (diff) | |
download | zsh-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.sh | 2 |
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 |