allow empty string for ircddb0_host

dev
Tom Early 5 years ago
parent cfe6ff83b8
commit ffc926de92

@ -265,7 +265,14 @@ IrcddbMenu () {
if [[ "$key" == l* ]]; then ircddb_login="${value^^}" if [[ "$key" == l* ]]; then ircddb_login="${value^^}"
elif [[ "$key" == ha* ]]; then elif [[ "$key" == ha* ]]; then
if [[ "$value" =~ ^[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$ ]]; then if [ -z "$value"]; then
if [ -z "${ircddb1_host+x}" ]; then
ircddb0_host=''
else
echo "You cannot set an empty value for ha unless hb has its default value"
read -p "<Enter> to continue: " garbage
fi
elif [[ "$value" =~ ^[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$ ]]; then
ircddb0_host="$value" ircddb0_host="$value"
else else
clear clear
@ -716,7 +723,7 @@ while [[ "$ans" != q* ]]
do do
clear clear
echo echo
echo " QnConfig Main Menu V#210207" echo " QnConfig Main Menu V#210213"
echo echo
echo -n "a : Module A - "; if [ -z $module_a ]; then echo "<EMPTY>"; else echo "${module_a^^}"; fi echo -n "a : Module A - "; if [ -z $module_a ]; then echo "<EMPTY>"; else echo "${module_a^^}"; fi
echo -n "b : Module B - "; if [ -z $module_b ]; then echo "<EMPTY>"; else echo "${module_b^^}"; fi echo -n "b : Module B - "; if [ -z $module_b ]; then echo "<EMPTY>"; else echo "${module_b^^}"; fi

Loading…
Cancel
Save

Powered by TurnKey Linux.