From 64a461d668d9ac056be971523ef50f1ba8c4f5b9 Mon Sep 17 00:00:00 2001 From: Siddhartha Bagaria Date: Thu, 17 May 2018 03:10:25 -0700 Subject: [PATCH] Portability with BSD stat in collect_coverage.sh BSD stat does not have --printf option. Closes #5162. PiperOrigin-RevId: 196965302 --- tools/test/collect_coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/collect_coverage.sh b/tools/test/collect_coverage.sh index a18edf30c2130f..58afc82ae4de47 100755 --- a/tools/test/collect_coverage.sh +++ b/tools/test/collect_coverage.sh @@ -109,7 +109,7 @@ fi cd $ROOT USES_LLVM_COV= -if stat --printf='' "${COVERAGE_DIR}"/*.profraw 2>/dev/null; then +if stat "${COVERAGE_DIR}"/*.profraw >/dev/null 2>&1; then USES_LLVM_COV=1 fi