projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49f8980
)
wg-installer: fix get_usage function
author
Nick Hainke
<vincent@systemli.org>
Sat, 13 Mar 2021 19:16:45 +0000
(20:16 +0100)
committer
Nick Hainke
<vincent@systemli.org>
Sun, 9 Jan 2022 13:13:06 +0000
(14:13 +0100)
The get_usage function always returns 0. The shell syntax was wrong.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit
f7cb8b20e118834f9a6c5be298737829f90ea68b
)
net/wg-installer/wg-server/lib/wg_functions.sh
patch
|
blob
|
history
diff --git
a/net/wg-installer/wg-server/lib/wg_functions.sh
b/net/wg-installer/wg-server/lib/wg_functions.sh
index 639052484e705046f4f2ef1f298daa06e0446c3d..e431eca987748a3d9c3fa28ef1be302ce5f3bb85 100644
(file)
--- a/
net/wg-installer/wg-server/lib/wg_functions.sh
+++ b/
net/wg-installer/wg-server/lib/wg_functions.sh
@@
-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)