From b76ceadbc7514098c8951125c61ad5ebaca44417 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Fri, 1 Sep 2023 14:23:15 +1000 Subject: [PATCH] correct -ne --- koji-setup/install_koji_farm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koji-setup/install_koji_farm.sh b/koji-setup/install_koji_farm.sh index 3dfcc4c..b37ba3d 100644 --- a/koji-setup/install_koji_farm.sh +++ b/koji-setup/install_koji_farm.sh @@ -37,8 +37,8 @@ curl $SCRIPT_GIT/bootstrap-build.sh > $SCRIPT_DIR/bootstrap-build.sh # ask for required parameters (ssh settings and build server FQDN) KOJI_HUB_FQDN="$(hostname -f)" while true ; do - read -n 2 -p "Country Code (eg, US) " COUNTRY_CODE - if [ ${#COUNTRY_CODE} ne 2 ] ; then + read -p "Country Code (eg, US) " COUNTRY_CODE + if [ ${#COUNTRY_CODE} -ne 2 ] ; then echo "You must enter a 2 character country code" else break