From 5b1ec52ac26bc9bc1f840e1b6cea566ef6d6abc9 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 28 Apr 2020 15:02:30 +0200 Subject: chore(args): rename add_client to add-client --- wireguard-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wireguard-install.sh') diff --git a/wireguard-install.sh b/wireguard-install.sh index 031dc33..c811ce8 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -79,7 +79,7 @@ if [ "$(systemd-detect-virt)" == "lxc" ]; then exit fi -if [[ $1 == "add_client" ]];then +if [[ $1 == "add-client" ]];then if [[ -e /etc/wireguard ]]; then addClient exit 0 @@ -88,7 +88,7 @@ if [[ $1 == "add_client" ]];then exit 1 fi elif [[ -e /etc/wireguard ]]; then - echo "WireGuard is already installed. Run with 'add_client' to add a client." + echo "WireGuard is already installed. Run with 'add-client' to add a client." exit 1 fi -- cgit v1.2.3