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:
Nick Hainke 2021-03-13 20:16:45 +01:00
parent 49f898044c
commit d364552774

View file

@ -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)