From 204152c76ea90100f286067f9ff298a8c79d33a3 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 20 Dec 2016 12:54:19 +0800 Subject: [PATCH] set -e for docs.sh --- paddle/scripts/travis/docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/scripts/travis/docs.sh b/paddle/scripts/travis/docs.sh index 4ab1746b5a..cd331522a9 100755 --- a/paddle/scripts/travis/docs.sh +++ b/paddle/scripts/travis/docs.sh @@ -12,13 +12,13 @@ set +e linkchecker doc/cn/html/index.html > doc_cn.out linkchecker doc/en/html/index.html > doc_en.out for i in doc_cn.out doc_en.out; do - echo $i grep " 0 errors found" $i if [ $? -ne 0 ]; then cat $i exit 1 fi done +set -e # Parse Github URL REPO=`git config remote.origin.url` -- GitLab