changed "return" to "exit"

This commit is contained in:
Philip (a-0) 2023-09-13 10:45:49 +02:00
parent 48dd176d6e
commit e548584603

View file

@ -5,7 +5,7 @@ IP=$1
if [[ -f /etc/wireguard/client/wg0.conf ]] if [[ -f /etc/wireguard/client/wg0.conf ]]
then then
echo "client/wg0.conf already exists. Please consider moving it to another place or deleting it" echo "client/wg0.conf already exists. Please consider moving it to another place or deleting it"
return 1 exit 1
fi fi
# generate client key pair # generate client key pair