fix reducing noise on connectivity testing

This commit is contained in:
Trevor Batley
2023-10-02 12:30:42 +11:00
parent 6105acd0fd
commit ed1e6c762e
2 changed files with 7 additions and 4 deletions

View File

@@ -50,7 +50,8 @@ if [ -z $KOJI_BUILD_FQDN ] ; then
KOJI_BUILD_FQDN=$KOJI_HUB_FQDN
fi
if [ ! nc -z $KOJI_BUILD_FQDN 22 2>/dev/null ] ; then
RESP=$(nc -z $KOJI_BUILD_FQDN 22 2>&1 | grep succeeded)
if [[ -z $RESP ]] ; then
echo "I cannot connect to $KOJI_BUILD_FQDN! Is it online? "
echo "Options:"
echo "- turn on the server"