wg-quick: darwin: bash correctness
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f64f0cc740
commit
9c18c70da6
|
@ -240,9 +240,7 @@ set_dns() {
|
||||||
# want DNS via DHCP when setting this back to "empty". Because macOS is
|
# want DNS via DHCP when setting this back to "empty". Because macOS is
|
||||||
# so horrible to deal with here, we'll simply wait for irate users to
|
# so horrible to deal with here, we'll simply wait for irate users to
|
||||||
# provide a patch themselves.
|
# provide a patch themselves.
|
||||||
|
|
||||||
local service response
|
local service response
|
||||||
|
|
||||||
{ read -r _; while read -r service; do
|
{ read -r _; while read -r service; do
|
||||||
[[ $service == "*"* ]] && service="${service:1}"
|
[[ $service == "*"* ]] && service="${service:1}"
|
||||||
while read -r response; do
|
while read -r response; do
|
||||||
|
@ -252,6 +250,7 @@ set_dns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
del_dns() {
|
del_dns() {
|
||||||
|
local service response
|
||||||
{ read -r _; while read -r service; do
|
{ read -r _; while read -r service; do
|
||||||
[[ $service == "*"* ]] && service="${service:1}"
|
[[ $service == "*"* ]] && service="${service:1}"
|
||||||
while read -r response; do
|
while read -r response; do
|
||||||
|
|
Loading…
Reference in New Issue