improve licensing
[distro-setup] / fixvpndns
index 0619293aa181e2e6f259248a49966c79800ac436..d33797ad7426e746d6cc23c12bb29ba5d45cf482 100755 (executable)
--- a/fixvpndns
+++ b/fixvpndns
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright (C) 2019 Ian Kelling
 # SPDX-License-Identifier: AGPL-3.0-or-later
-source /a/bin/errhandle/err
+source /a/bin/bash-bear-trap/bash-bear
 
 resolvuid=$(id -u systemd-resolve)
 case $EUID in
@@ -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