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:
parent
c8f577ca4a
commit
f7cb8b20e1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue