From a921027e2f190f4e43bb6bde9ab242cd686be9d2 Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Sun, 17 Apr 2011 20:24:45 -0300 Subject: [PATCH] common.sh: Added redirection to /dev/null of all grep(1) errors Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br> --- common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common.sh b/common.sh index cc4262e..5883c62 100644 --- a/common.sh +++ b/common.sh @@ -33,10 +33,10 @@ function getProxyConf() fi # Obtain proxy configuration by reading the proxy file - phost=$(grep "^phost=" ${PROXYCONF} | cut -f2 -d=) - pport=$(grep "^pport=" ${PROXYCONF} | cut -f2 -d=) - puid=$(grep "^puid=" ${PROXYCONF} | cut -f2 -d=) - ppasswd=$(grep "^ppasswd=" ${PROXYCONF} | cut -f2 -d=) + phost=$(grep "^phost=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=) + pport=$(grep "^pport=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=) + puid=$(grep "^puid=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=) + ppasswd=$(grep "^ppasswd=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=) # Add a prefix to each non empty proxy information test -n "${phost}" && phost="--phost=${phost}" -- GitLab