From 8270653ada75c778bf40d97a70368fcae7f38083 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 2 May 2022 20:45:32 +0200 Subject: [PATCH] -n instead of ! -z --- .templates/90-dns_set.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/90-dns_set.sh b/.templates/90-dns_set.sh index 4908ee163..474a86e0a 100644 --- a/.templates/90-dns_set.sh +++ b/.templates/90-dns_set.sh @@ -27,7 +27,7 @@ if bashio::config.has_value 'DNS_server'; then done # Only add DNS if there are DNS set - if [[ ! -z "$DNS" ]]; then + if [[ -n "$DNS" ]]; then # Write resolv.conf # shellcheck disable=SC2059 printf "${DNS}" >/etc/resolv.conf