fix: dnserr on new line

This commit is contained in:
Eli Bosley
2024-11-06 10:13:52 -05:00
parent e84430471d
commit 9bfc04c2a5

View File

@@ -64,7 +64,8 @@ fi
dnscheck() { dnscheck() {
HOST=$1 HOST=$1
if [ -x /usr/bin/host ] && ! /usr/bin/host -W 10 "${HOST}" &>/dev/null; then if [ -x /usr/bin/host ] && ! /usr/bin/host -W 10 "${HOST}" &>/dev/null; then
echo "⚠️ Warning: Your DNS server (${DNS_SERVER1}) is unable to resolve '${HOST}'" DNSERR=yes echo "⚠️ Warning: Your DNS server (${DNS_SERVER1}) is unable to resolve '${HOST}'"
DNSERR=yes
fi fi
} }