diff --git a/.templates/90-dns_set.sh b/.templates/90-dns_set.sh index 474a86e0a..776948974 100644 --- a/.templates/90-dns_set.sh +++ b/.templates/90-dns_set.sh @@ -27,7 +27,8 @@ if bashio::config.has_value 'DNS_server'; then done # Only add DNS if there are DNS set - if [[ -n "$DNS" ]]; then + # shellcheck disable=SC2236 + if [[ ! -z "$DNS" ]]; then # Write resolv.conf # shellcheck disable=SC2059 printf "${DNS}" >/etc/resolv.conf