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>
This commit is contained in:
Nick Hainke 2022-01-09 13:13:47 +01:00
parent 714b51c630
commit 0e416dadd1
1 changed files with 1 additions and 1 deletions

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