diff --git a/extras/add_vpn_user.sh b/extras/add_vpn_user.sh index 3925798..5606f7a 100755 --- a/extras/add_vpn_user.sh +++ b/extras/add_vpn_user.sh @@ -107,10 +107,10 @@ Setup VPN clients: https://git.io/vpnclients EOF -printf "Do you want to continue? [y/N] " +printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo echo "Adding or updating VPN user..." echo diff --git a/extras/del_vpn_user.sh b/extras/del_vpn_user.sh index e64a4a4..e0ac633 100755 --- a/extras/del_vpn_user.sh +++ b/extras/del_vpn_user.sh @@ -105,10 +105,10 @@ Username: $VPN_USER EOF -printf "Do you want to continue? [y/N] " +printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo echo "Deleting VPN user..." echo diff --git a/extras/ikev2onlymode.sh b/extras/ikev2onlymode.sh index ec2e567..22dcd11 100755 --- a/extras/ikev2onlymode.sh +++ b/extras/ikev2onlymode.sh @@ -26,11 +26,11 @@ abort_and_exit() { exit 1 } -confirm_or_abort() { +continue_or_abort() { printf '%s' "$1" read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo ;; *) @@ -95,7 +95,7 @@ Note: This option will disable IKEv2-only mode on this VPN server. With IKEv2-on IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes) in addition to IKEv2. EOF - confirm_or_abort "Do you want to continue? [y/N] " + continue_or_abort "Do you want to continue? [Y/n] " } confirm_enable_ikev2_only() { @@ -107,7 +107,7 @@ Note: This option will enable IKEv2-only mode on this VPN server. With IKEv2-onl modes) will be dropped. EOF - confirm_or_abort "Do you want to continue? [y/N] " + continue_or_abort "Do you want to continue? [Y/n] " } toggle_ikev2_only() { diff --git a/extras/update_vpn_users.sh b/extras/update_vpn_users.sh index cd4364b..c744f57 100755 --- a/extras/update_vpn_users.sh +++ b/extras/update_vpn_users.sh @@ -127,10 +127,10 @@ Setup VPN clients: https://git.io/vpnclients EOF -printf "Do you want to continue? [y/N] " +printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo echo "Updating VPN users..." echo diff --git a/extras/vpnupgrade_alpine.sh b/extras/vpnupgrade_alpine.sh index 6a68647..17d4f83 100755 --- a/extras/vpnupgrade_alpine.sh +++ b/extras/vpnupgrade_alpine.sh @@ -123,10 +123,10 @@ Note: You already have Libreswan version $SWAN_VER installed! EOF fi - printf "Do you want to continue? [y/N] " + printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo ;; *) diff --git a/extras/vpnupgrade_amzn.sh b/extras/vpnupgrade_amzn.sh index b563e5e..de599ac 100755 --- a/extras/vpnupgrade_amzn.sh +++ b/extras/vpnupgrade_amzn.sh @@ -107,10 +107,10 @@ Note: You already have Libreswan version $SWAN_VER installed! EOF fi - printf "Do you want to continue? [y/N] " + printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo ;; *) diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index f6fa048..bf7f007 100755 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -125,10 +125,10 @@ Note: You already have Libreswan version $SWAN_VER installed! EOF fi - printf "Do you want to continue? [y/N] " + printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo ;; *) diff --git a/extras/vpnupgrade_ubuntu.sh b/extras/vpnupgrade_ubuntu.sh index eec5a5d..4472da4 100755 --- a/extras/vpnupgrade_ubuntu.sh +++ b/extras/vpnupgrade_ubuntu.sh @@ -134,10 +134,10 @@ Note: You already have Libreswan version $SWAN_VER installed! EOF fi - printf "Do you want to continue? [y/N] " + printf "Do you want to continue? [Y/n] " read -r response case $response in - [yY][eE][sS]|[yY]) + [yY][eE][sS]|[yY]|'') echo ;; *)