From 87b2b4878101cf6123606d9600067d360cb82ce6 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Mon, 4 Sep 2023 17:42:37 +1000 Subject: [PATCH] rename script and fix nc test --- koji-setup/{add-koji-builder.sh => koji-add-builder.sh} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename koji-setup/{add-koji-builder.sh => koji-add-builder.sh} (98%) diff --git a/koji-setup/add-koji-builder.sh b/koji-setup/koji-add-builder.sh similarity index 98% rename from koji-setup/add-koji-builder.sh rename to koji-setup/koji-add-builder.sh index 8494547..a8476e7 100644 --- a/koji-setup/add-koji-builder.sh +++ b/koji-setup/koji-add-builder.sh @@ -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"