From ac8d6a295ac1db54389cb0260820f3bd0dd9e10c Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Tue, 27 Feb 2018 16:27:57 +0100 Subject: [PATCH] sh2ju.sh: suppress `which` command output when gdate not found in $PATH. --- third_party/forked/shell2junit/sh2ju.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/forked/shell2junit/sh2ju.sh b/third_party/forked/shell2junit/sh2ju.sh index 8a4c027eaba..f5f7ec4aa93 100755 --- a/third_party/forked/shell2junit/sh2ju.sh +++ b/third_party/forked/shell2junit/sh2ju.sh @@ -59,7 +59,7 @@ function juLogClean() { function juLog() { suite=""; errfile=/tmp/evErr.$$.log - date=`which gdate || which date` + date=`which gdate 2>/dev/null || which date` asserts=00; errors=0; total=0; content="" # parse arguments