Skip to content

Commit 2a14ddf

Browse files
committed
Add directory existence check before building documentation
1 parent 0ac525c commit 2a14ddf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/docs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ sudo make
1919

2020
# make documentation
2121
show-green "Building documentation"
22+
if [ ! -d "doc" ]; then
23+
echo "Error: doc directory does not exist."
24+
exit 1
25+
fi
2226
cd doc
2327
make html
2428
cd ..

0 commit comments

Comments
 (0)