Add command existence check for ping
This commit is contained in:
parent
4bc6382e0a
commit
5bba428b4c
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ check(){
|
||||||
|
|
||||||
command_exists 'curl'
|
command_exists 'curl'
|
||||||
command_exists 'nc'
|
command_exists 'nc'
|
||||||
|
command_exists 'ping'
|
||||||
mkdir -p "${tmp}/ok" "${tmp}/ko" || exit 1
|
mkdir -p "${tmp}/ok" "${tmp}/ko" || exit 1
|
||||||
|
|
||||||
while IFS='\n' read -r line; do
|
while IFS='\n' read -r line; do
|
||||||
|
|
Loading…
Reference in a new issue