mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: dnserr on new line
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user