Improvements

This commit is contained in:
Stanislas 2018-09-23 15:54:13 +02:00 committed by GitHub
parent 2af559e6af
commit 27ae634bcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -560,8 +560,9 @@ function installOpenVPN () {
echo "" echo ""
echo "Continuing will update your installed packages and install needed ones." echo "Continuing will update your installed packages and install needed ones."
echo "" echo ""
until [[ $CONTINUE == "y" || $CONTINUE == "n" ]]; do unset $CONTINUE
read -rp "Continue ? [y/n]: " -e -i y CONTINUE until [[ $CONTINUE =~ (y|n) ]]; do
read -rp "Continue? [y/n]: " -e -i y CONTINUE
done done
if [[ "$CONTINUE" = "n" ]]; then if [[ "$CONTINUE" = "n" ]]; then
echo "Exiting because user did not permit updating the system." echo "Exiting because user did not permit updating the system."