Lint SC2236

This commit is contained in:
Alexandre
2025-04-08 10:59:10 +02:00
committed by GitHub
parent a78a28d66f
commit 83c51c9d84
5 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ if bashio::config.has_value 'DNS_server'; then
# Only add DNS if there are DNS set
# shellcheck disable=SC2236
if [[ ! -z "$DNS" ]]; then
if [[ -n "${DNS:-}" ]]; then
# Write resolv.conf
# shellcheck disable=SC2059
printf "${DNS}" >/etc/resolv.conf