Fix whitespace

pull/49/head
Javi Fontan 9 years ago
parent 7f6e3057ee
commit 3af4c9919f

@ -119,18 +119,18 @@ nameservers=$(
dns+=("$value") dns+=("$value")
fi fi
done done
echo $(printf " %s" "${dns[@]}") echo $(printf " %s" "${dns[@]}")
) )
searchdomains=$( searchdomains=$(
search=() search=()
for var in ${SEARCH_VARIABLES}; do for var in ${SEARCH_VARIABLES}; do
value=$(eval "echo \"\${$var}\"") value=$(eval "echo \"\${$var}\"")
if [ -n "$value" ]; then if [ -n "$value" ]; then
search+=("$value") search+=("$value")
fi fi
done done
echo $(printf " %s" "${search[@]}") echo $(printf " %s" "${search[@]}")
) )
gen_iface_conf() { gen_iface_conf() {
@ -150,13 +150,13 @@ EOT
fi fi
#only for first interface #only for first interface
if [ "eth0" == $DEV ]; then if [ "eth0" == $DEV ]; then
if [ -n "$nameservers" ]; then if [ -n "$nameservers" ]; then
echo " dns-nameservers $nameservers" echo " dns-nameservers $nameservers"
fi fi
if [ -n "$searchdomains" ]; then if [ -n "$searchdomains" ]; then
echo " dns-search $searchdomains" echo " dns-search $searchdomains"
fi fi
fi fi
echo "" echo ""
} }

Loading…
Cancel
Save