mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
lint
This commit is contained in:
@@ -27,7 +27,8 @@ if bashio::config.has_value 'DNS_server'; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Only add DNS if there are DNS set
|
# Only add DNS if there are DNS set
|
||||||
if [[ -n "$DNS" ]]; then
|
# shellcheck disable=SC2236
|
||||||
|
if [[ ! -z "$DNS" ]]; then
|
||||||
# Write resolv.conf
|
# Write resolv.conf
|
||||||
# shellcheck disable=SC2059
|
# shellcheck disable=SC2059
|
||||||
printf "${DNS}" >/etc/resolv.conf
|
printf "${DNS}" >/etc/resolv.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user