-n instead of ! -z

This commit is contained in:
Alexandre
2022-05-02 20:45:32 +02:00
committed by GitHub
parent f8cde01e12
commit 8270653ada

View File

@@ -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