Update defaults.inc

This commit is contained in:
2019-02-07 14:08:14 -06:00
parent 89e6ea1fa8
commit 8733fb788b

View File

@@ -114,8 +114,12 @@ CERT-CHECK(){
}
CHECK_HOST(){
ping -c 3 ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then
if [ -z ${1+x} ]; then
ping -c 3 ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo false
fi
else
echo false
fi
}