aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2021-03-13 20:16:45 +0100
committerPolynomdivision <vincent@systemli.org>2021-03-13 21:21:20 +0100
commitf7cb8b20e118834f9a6c5be298737829f90ea68b (patch)
tree42a48cb057990f63adf344ba35934311032484ff /net
parentc8f577ca4ae16aa77d48326ee662f8a3a0219237 (diff)
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>
Diffstat (limited to 'net')
-rw-r--r--net/wg-installer/wg-server/lib/wg_functions.sh2
1 files changed, 1 insertions, 1 deletions
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)