mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Comment about more basic way to check connectivity
This commit is contained in:
parent
0b1716e5cd
commit
cc69e1cee2
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ function _upgrade_zsh() {
|
|||
# -L follow redirect, -s silent,
|
||||
# --max-time overall operation timeout, -I only download headers
|
||||
whence curl > /dev/null && curl -L -s --max-time 3 -I ${REMOTE} > /dev/null || return 0
|
||||
# the curl call could be replaced by:
|
||||
# `ping -q -c 1 -W 1 8.8.8.8 >/dev/null` without DNS resolution
|
||||
# or `ping -q -c 1 -W 1 github.com >/dev/null`
|
||||
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
|
||||
# update the zsh file
|
||||
_update_zsh_update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue