Commit b6aad30b authored by Tails developers's avatar Tails developers

Tell grep to be quiet.

parent 097785df
......@@ -101,7 +101,7 @@ if [ -r "${NM_ENV_FILE}" ]; then
# is far from perfect, it serves our purpose here.
IP4_REGEX='[0-9]\{1,3\}\(\.[0-9]\{1,3\}\)\{3\}'
NAMESERVERS_REGEX="^IP4_NAMESERVERS=\"${IP4_REGEX}\"$"
if grep -v "${NAMESERVERS_REGEX}" "${NM_ENV_FILE}"; then
if grep -qv "${NAMESERVERS_REGEX}" "${NM_ENV_FILE}"; then
error "`gettext \"NetworkManager passed us garbage data when trying to deduce the clearnet DNS server.\"`"
fi
# Import the IP4_NAMESERVERS variable.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment