8000 [doc build] Fix unsafe exit. · scikit-learn/scikit-learn@c19c4e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c19c4e3

Browse files
committed
[doc build] Fix unsafe exit.
1 parent 5ed1c9c commit c19c4e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_tools/circle/build_doc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ then
189189
if [ -z "$warnings" ]
190190
then
191191
warnings="/home/circleci/project/ no warnings"
192+
else
193+
check=1
192194
fi
193195
echo "$warnings"
194196

@@ -204,8 +206,7 @@ then
204206
echo '</ul></body></html>'
205207
) > 'doc/_build/html/stable/_changed.html'
206208

207-
check = `echo $warnings | grep "no warnings"`
208-
if [ -z "$check" ]
209+
if [ $check ]
209210
then
210211
echo "There are Sphinx Warnings in the documentation!"
211212
echo "Please check doc/_build/html/stable/_changed.html"

0 commit comments

Comments
 (0)
0