From f895b55058ea54c2aa2d645c3ff33166e79a54d2 Mon Sep 17 00:00:00 2001 From: Hasan Aga Date: Sun, 16 Oct 2022 22:59:16 +0300 Subject: [PATCH] remove default char "n" from uninstall step (#370) --- wireguard-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 9126172..2f0a3e6 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -362,7 +362,8 @@ function revokeClient() { function uninstallWg() { echo "" - read -rp "Do you really want to remove WireGuard? [y/n]: " -e -i n REMOVE + read -rp "Do you really want to remove WireGuard? [y/n]: " -e REMOVE + REMOVE=${REMOVE:-n} if [[ $REMOVE == 'y' ]]; then checkOS