Skip to content

Commit

Permalink
Update lib4bin
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Nov 7, 2024
1 parent eb8e7fd commit 01a2e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib4bin
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ is_url() {
is_net_conn() {
if is_exe_exist nc
then nc -zw1 github.com 443 &>/dev/null
elif is_exe_exist ping
then ping -c 2 github.com &>/dev/null
elif is_exe_exist curl
then curl -Ifs github.com &>/dev/null
elif is_exe_exist wget
then wget -q --spider github.com &>/dev/null
elif is_exe_exist ping
then ping -c 2 github.com &>/dev/null
else return 1
fi
}
Expand Down

0 comments on commit 01a2e8e

Please sign in to comment.