wg-installer: fix get_usage function

The get_usage function always returns 0. The shell syntax was wrong.

Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke 2021-03-13 20:16:45 +01:00 committed by Polynomdivision
parent c8f577ca4a
commit f7cb8b20e1
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
. /usr/share/wginstaller/wg.sh
wg_get_usage () {
num_interfaces = $(wg show interfaces | wc -w)
num_interfaces=$(wg show interfaces | wc -w)
json_init
json_add_int "num_interfaces" $num_interfaces
echo $(json_dump)