forked from wolfSSL/wolfssl
linux doesn't suport -o ping, -i 0.2 is more compatible
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
||||||
|
|
||||||
# is our desired server there?
|
# is our desired server there?
|
||||||
ping -c 3 -o www.google.com
|
ping -c 2 -i 0.2 www.google.com
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find server, skipping" && exit 0
|
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find server, skipping" && exit 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user