wg-installer: fix typo in cleanup function

The delete variable was misspelled leading to devices always being
removed although they had connected neighbors.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 0e416dadd1)
This commit is contained in:
Nick Hainke 2022-01-09 13:13:47 +01:00
parent 1de352b603
commit f2745c85a2

View file

@ -32,7 +32,7 @@ check_wg_neighbors() {
delete=1
for ip in $ips; do
if [ $ip != $linklocal ] && [ $(owipcalc $ip linklocal) -eq 1 ]; then
delte=0
delete=0
break
fi
done