From 27ae634bcbd650ff6a525725817ac5f08959ab58 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Sun, 23 Sep 2018 15:54:13 +0200 Subject: [PATCH] Improvements --- openvpn-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index e1c7c89..ae14808 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -560,8 +560,9 @@ function installOpenVPN () { echo "" echo "Continuing will update your installed packages and install needed ones." echo "" - until [[ $CONTINUE == "y" || $CONTINUE == "n" ]]; do - read -rp "Continue ? [y/n]: " -e -i y CONTINUE + unset $CONTINUE + until [[ $CONTINUE =~ (y|n) ]]; do + read -rp "Continue? [y/n]: " -e -i y CONTINUE done if [[ "$CONTINUE" = "n" ]]; then echo "Exiting because user did not permit updating the system."