correct -ne

This commit is contained in:
Trevor Batley 2023-09-01 14:23:15 +10:00
parent f1811bc44d
commit b76ceadbc7

View File

@ -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