From 9a68ffa88b40b9128007a2da7ea601e175c92993 Mon Sep 17 00:00:00 2001 From: randomshell Date: Sat, 22 Aug 2020 20:54:27 +0000 Subject: [PATCH] Exit if the client exists --- wireguard-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index 063a2ce..c705a93 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -252,6 +252,7 @@ function newClient() { echo "" echo "A client with the specified name was already created, please choose another name." echo "" + exit 1 fi done