From bb06b339ae48ea5c8245ffe8cdc7d35919531ca3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 2 May 2022 20:49:23 +0200 Subject: [PATCH] lint --- .templates/90-dns_set.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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