From f7cb8b20e118834f9a6c5be298737829f90ea68b Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Sat, 13 Mar 2021 20:16:45 +0100 Subject: [PATCH] wg-installer: fix get_usage function The get_usage function always returns 0. The shell syntax was wrong. Signed-off-by: Nick Hainke --- net/wg-installer/wg-server/lib/wg_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wg-installer/wg-server/lib/wg_functions.sh b/net/wg-installer/wg-server/lib/wg_functions.sh index 6a5646b62..65f94e5c2 100644 --- a/net/wg-installer/wg-server/lib/wg_functions.sh +++ b/net/wg-installer/wg-server/lib/wg_functions.sh @@ -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)