Skip to content

Commit

Permalink
Portability with BSD stat in collect_coverage.sh
Browse files Browse the repository at this point in the history
BSD stat does not have --printf option.

Closes #5162.

PiperOrigin-RevId: 196965302
  • Loading branch information
Siddhartha Bagaria authored and Copybara-Service committed May 17, 2018
1 parent bdcdd5b commit 64a461d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test/collect_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 64a461d

Please sign in to comment.