From 3af374f6f5344be1e6adb582f168c32d5c089d5c Mon Sep 17 00:00:00 2001 From: Alessandro Partesotti Date: Tue, 25 Apr 2023 21:36:51 +0200 Subject: [PATCH] fix --- openvpn-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1a88205..ff01413 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -323,9 +323,13 @@ function installQuestions() { $LAN_SUBNET_MASK = "255.255.255.0" ;; 2) - read -rp "IP NETWORK (e.g. 192.168.4.0): " -e -i 1 LAN_IP + until [[ $LAN_IP =~ "" ]]; do + read -rp "IP NETWORK (e.g. 192.168.4.0): " -e -i 1 LAN_IP + done echo "NETWORK SET TO $LAN_IP" - read -rp "SUBNET (e.g. 255.255.255.0) : " -e -i 1 LAN_SUBNET_MASK + until [[ $LAN_SUBNET_MASK =~ "" ]]; do + read -rp "SUBNET (e.g. 255.255.255.0) : " -e -i 1 LAN_SUBNET_MASK + done echo "SUBNET SET TO $LAN_SUBNET_MASK" ;; esac