From 09cbfe27394600a4ba174deb8338d37e93074119 Mon Sep 17 00:00:00 2001 From: Zhenxu Ke Date: Tue, 27 Apr 2021 19:46:10 +0800 Subject: [PATCH] Exit when failed to validate the shasum (#6852) --- tools/coverage/report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/coverage/report.sh b/tools/coverage/report.sh index fe4c5aecd1..5140fbdfc8 100755 --- a/tools/coverage/report.sh +++ b/tools/coverage/report.sh @@ -47,7 +47,7 @@ VERSION=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2) for i in 1 256 512 do shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") || - shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") + shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") || exit 0 done bash codecov -X fix -f /tmp/report-*.xml || true -- GitLab