diff --git a/wireguard-install.sh b/wireguard-install.sh index 10de314..3b8a91e 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -404,7 +404,7 @@ function uninstallWg() { fi } -fucntion listClient() { +function listClient() { NUMBER_OF_CLIENTS=$(grep -c -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf") if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then echo "" @@ -413,7 +413,7 @@ fucntion listClient() { fi echo "" - + grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -s ') ' }