From e5485846032de120a638f8868955eb87f831f84a Mon Sep 17 00:00:00 2001 From: "Philip (a-0)" <@ph:a-0.me> Date: Wed, 13 Sep 2023 10:45:49 +0200 Subject: [PATCH] changed "return" to "exit" --- templates/add_client.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/add_client.sh.j2 b/templates/add_client.sh.j2 index afd5963..f41c033 100644 --- a/templates/add_client.sh.j2 +++ b/templates/add_client.sh.j2 @@ -5,7 +5,7 @@ IP=$1 if [[ -f /etc/wireguard/client/wg0.conf ]] then echo "client/wg0.conf already exists. Please consider moving it to another place or deleting it" - return 1 + exit 1 fi # generate client key pair