From de8927ebe10a2ce8f7eb05b45e07794998040270 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Wed, 21 Dec 2016 10:30:58 +0800 Subject: [PATCH] refine docs.sh --- paddle/scripts/travis/docs.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/paddle/scripts/travis/docs.sh b/paddle/scripts/travis/docs.sh index cd331522a91..1b05dce29a1 100755 --- a/paddle/scripts/travis/docs.sh +++ b/paddle/scripts/travis/docs.sh @@ -9,12 +9,9 @@ make paddle_docs paddle_docs_cn # check websites for broken links 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 - grep " 0 errors found" $i +for i in cn en; do + linkchecker doc/$i/html/index.html if [ $? -ne 0 ]; then - cat $i exit 1 fi done -- GitLab