lots: shellcheck, streaming stuff, fixes
[distro-setup] / fixvpndns
index a97b2bd1489633cba0bb7b3dbb3503bbac6a384f..d33797ad7426e746d6cc23c12bb29ba5d45cf482 100755 (executable)
--- a/fixvpndns
+++ b/fixvpndns
@@ -16,5 +16,5 @@ if ! resolvectl dnsovertls tunfsf &>/dev/null; then
   # resolvectl dnsovertls tunfsf ||:
   exit 0
 fi
-read _ link _ < <(resolvectl dnsovertls tunfsf)
+read -r _ link _ < <(resolvectl dnsovertls tunfsf)
 busctl call org.freedesktop.resolve1 /org/freedesktop/resolve1 org.freedesktop.resolve1.Manager SetLinkDNSOverTLS is $link no