Update test.sh

This commit is contained in:
2019-02-07 14:00:36 -06:00
parent 75b740337a
commit 16f1a431ba

View File

@@ -23,9 +23,12 @@ CHECK_HOST(){
ping -c 3 ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo false
else echo true
fi
}
CHECK_HOST 10.5.10.53
if [ CHECK_HOST 10.5.10.53 = "false" ]; then
echo 'host down'
else
echo 'host up'
fi