From eb276632c61ae569d811520bec8565ccf6d42ff7 Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Tue, 8 Sep 2020 23:43:01 +0800 Subject: [PATCH] resolve the issue of curl having same exit code with paddle build failed (#27035) * resolve the issue of curl having same exit code with paddle build failed * modifed the value of exit code * simplify the code Co-authored-by: chalsliu <45041955+chalsliu@users.noreply.github.com> --- tools/coverage/paddle_coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/coverage/paddle_coverage.sh b/tools/coverage/paddle_coverage.sh index 2ea2b1fe351..008b35d01ca 100644 --- a/tools/coverage/paddle_coverage.sh +++ b/tools/coverage/paddle_coverage.sh @@ -5,7 +5,7 @@ set -xe PADDLE_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}")/../../" && pwd )" # install lcov -curl -o /lcov-1.14.tar.gz -s https://paddle-ci.gz.bcebos.com/coverage%2Flcov-1.14.tar.gz +curl -o /lcov-1.14.tar.gz -x "" -s https://paddle-ci.gz.bcebos.com/coverage/lcov-1.14.tar.gz || exit 101 tar -xf /lcov-1.14.tar.gz -C / cd /lcov-1.14 make install -- GitLab