diff options
author | Hasan Aga <careerforma@gmail.com> | 2022-10-16 22:59:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-16 21:59:16 +0200 |
commit | f895b55058ea54c2aa2d645c3ff33166e79a54d2 (patch) | |
tree | a97d23b6c6bce4307122adb9eb2b470012cf53a8 | |
parent | 514901fd0b3083e357a1ffd0a260652ba9faf41f (diff) |
remove default char "n" from uninstall step (#370)
-rw-r--r-- | wireguard-install.sh | 3 |
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 |