From 91e09dedf1ec98a164cc8eaba4b43fb8f6534d84 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Sat, 1 Aug 2015 20:27:30 +0200 Subject: [PATCH] Remove a useless use of wc --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 7efdd5f..9997d1e 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -98,7 +98,7 @@ if [[ -e /etc/openvpn/server.conf ]]; then 2) # This option could be documented a bit better and maybe even be simplimplified # ...but what can I say, I want some sleep too - NUMBEROFCLIENTS=$(tail -n +2 /etc/openvpn/easy-rsa/2.0/keys/index.txt | grep "^V" | wc -l) + NUMBEROFCLIENTS=$(tail -n +2 /etc/openvpn/easy-rsa/2.0/keys/index.txt | grep -c "^V") if [[ "$NUMBEROFCLIENTS" = '0' ]]; then echo "" echo "You have no existing clients!"