From 51308292cd5ae4e3c9801a5ffbd2df49ef87869c Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 13 Jun 2017 23:02:32 +0200 Subject: [PATCH] coverage.sh: Fix "make check" error propagation --- expat/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/coverage.sh b/expat/coverage.sh index 20789e4b..5a43ff1f 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -85,7 +85,7 @@ _run() { # Make sure that files overlap in report despite different build folders sed "/SF:/ s,${build_dir}/,${source_dir}/," "${coverage_info}-all" > "${coverage_info}" ) |& sed 's,^, ,' - res=$? + res=${PIPESTATUS[0]} if [[ ${res} -eq 0 ]]; then echo PASSED