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