Add command existence check for ping
parent
d7a3feb6f3
commit
1de60a20d7
|
@ -51,6 +51,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 New Issue