aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHasan Aga <careerforma@gmail.com>2022-10-16 22:59:16 +0300
committerGitHub <noreply@github.com>2022-10-16 21:59:16 +0200
commitf895b55058ea54c2aa2d645c3ff33166e79a54d2 (patch)
treea97d23b6c6bce4307122adb9eb2b470012cf53a8
parent514901fd0b3083e357a1ffd0a260652ba9faf41f (diff)
remove default char "n" from uninstall step (#370)
-rw-r--r--wireguard-install.sh3
1 files changed, 2 insertions, 1 deletions
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