wg-quick: darwin: simpler inclusion check

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-05-17 19:29:48 +02:00
parent 986feba2ee
commit 434bc616b2
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ collect_new_service_dns() {
done; } < <(networksetup -listallnetworkservices)
for service in "${!SERVICE_DNS[@]}"; do
[[ ${found_services["$service"]} == 1 ]] || unset SERVICE_DNS["$service"]
[[ -n ${found_services["$service"]} ]] || unset SERVICE_DNS["$service"]
done
}