Add command existence check for ping

This commit is contained in:
Alex Povel 2021-03-29 17:03:37 +02:00
parent d7a3feb6f3
commit 1de60a20d7
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ check(){
command_exists 'curl'
command_exists 'nc'
command_exists 'ping'
mkdir -p "${tmp}/ok" "${tmp}/ko" || exit 1
while IFS='\n' read -r line; do