From: Jean Privat Date: Mon, 27 Feb 2012 21:00:45 +0000 (-0500) Subject: tools: protect ccache detection to avoid pollution on stderr X-Git-Tag: v0.5~11 X-Git-Url: http://nitlanguage.org tools: protect ccache detection to avoid pollution on stderr Signed-off-by: Jean Privat --- diff --git a/bin/gccx b/bin/gccx index 8159f30..fa369a6 100755 --- a/bin/gccx +++ b/bin/gccx @@ -69,7 +69,7 @@ return $res } cache=true -if ccache -V 2>/dev/null >/dev/null; then +if ( ccache -V ) 2>/dev/null >/dev/null; then cache=ccache fi