Merge pull request #3401 from odonnellryan/patch-1
Swap "grep -q" with "grep > /dev/null" so that "go help" doesn't balk when the pipe closes unexpectedly (since "grep -q" closes the pipe the second it finds a match) Upstream-commit: d5bb0ff80a3cd95ed6a3774248f3ee3561cb5f22 Component: engine
This commit is contained in:
@ -69,7 +69,7 @@ BUILDFLAGS='-tags netgo -a'
|
||||
|
||||
HAVE_GO_TEST_COVER=
|
||||
if \
|
||||
go help testflag | grep -q -- -cover \
|
||||
go help testflag | grep -- -cover > /dev/null \
|
||||
&& go tool -n cover > /dev/null 2>&1 \
|
||||
; then
|
||||
HAVE_GO_TEST_COVER=1
|
||||
|
||||
Reference in New Issue
Block a user