rename script and fix nc test

This commit is contained in:
Trevor Batley 2023-09-04 17:42:37 +10:00
parent 033113b287
commit 87b2b48781

View File

@ -18,7 +18,7 @@ for param in $1 $2 ; do
done
if [ $DEBUG ] ; then
set -x
set -xe
SILENT=
QUIET="-v"
fi
@ -49,7 +49,8 @@ fi
if [ -z $KOJI_BUILD_FQDN ] ; then
KOJI_BUILD_FQDN=$KOJI_HUB_FQDN
fi
if [ ! (nc -z $KOJI_BUILD_FQDN 22) ] ; then
if [ ! nc -z $KOJI_BUILD_FQDN 22 2>/dev/null ] ; then
echo "I cannot connect to $KOJI_BUILD_FQDN! Is it online? "
echo "Options:"
echo "- turn on the server"