1
0
Mirror von https://github.com/angristan/openvpn-install.git synchronisiert 2025-07-12 09:24:22 +02:00

Remove a useless use of wc

Dieser Commit ist enthalten in:
Hyacinthe Cartiaux 2015-08-01 20:27:30 +02:00
Ursprung 7d467d9666
Commit 91e09dedf1

Datei anzeigen

@ -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!"