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>
(cherry picked from commit f7cb8b20e1
)
This commit is contained in:
parent
49f898044c
commit
d364552774
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ wg_check_interfaces () {
|
|||
}
|
||||
|
||||
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