mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
-n instead of ! -z
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user