Skip to content

Commit de8927e

Browse files
committed
refine docs.sh
1 parent 5471e87 commit de8927e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

paddle/scripts/travis/docs.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ make paddle_docs paddle_docs_cn
99

1010
# check websites for broken links
1111
set +e
12-
linkchecker doc/cn/html/index.html > doc_cn.out
13-
linkchecker doc/en/html/index.html > doc_en.out
14-
for i in doc_cn.out doc_en.out; do
15-
grep " 0 errors found" $i
12+
for i in cn en; do
13+
linkchecker doc/$i/html/index.html
1614
if [ $? -ne 0 ]; then
17-
cat $i
1815
exit 1
1916
fi
2017
done

0 commit comments

Comments
 (0)