Skip to content
Snippets Groups Projects
Commit a921027e authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci Committed by Danilo K. S. Yorinori
Browse files

common.sh: Added redirection to /dev/null of all grep(1) errors

parent 3d0d4731
No related branches found
No related tags found
No related merge requests found
...@@ -33,10 +33,10 @@ function getProxyConf() ...@@ -33,10 +33,10 @@ function getProxyConf()
fi fi
# Obtain proxy configuration by reading the proxy file # Obtain proxy configuration by reading the proxy file
phost=$(grep "^phost=" ${PROXYCONF} | cut -f2 -d=) phost=$(grep "^phost=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
pport=$(grep "^pport=" ${PROXYCONF} | cut -f2 -d=) pport=$(grep "^pport=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
puid=$(grep "^puid=" ${PROXYCONF} | cut -f2 -d=) puid=$(grep "^puid=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
ppasswd=$(grep "^ppasswd=" ${PROXYCONF} | cut -f2 -d=) ppasswd=$(grep "^ppasswd=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
# Add a prefix to each non empty proxy information # Add a prefix to each non empty proxy information
test -n "${phost}" && phost="--phost=${phost}" test -n "${phost}" && phost="--phost=${phost}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment