Make --online behaviour consistent when there
is no connection at all and only no internet connection
This commit is contained in:
parent
6a9115c141
commit
12c4f87f56
1 changed files with 1 additions and 1 deletions
2
ndrop
2
ndrop
|
@ -72,7 +72,7 @@ partial_match() {
|
|||
wait_online() {
|
||||
wait_online=0
|
||||
while [[ $wait_online -lt 200 ]]; do
|
||||
ping -qc 1 -w 20 -i 0.1 github.com && break
|
||||
ping -qc 1 github.com && break
|
||||
sleep 0.1
|
||||
$wait_online++
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue