Skip to content

Commit ed3b1fa

Browse files
vivekmigfacebook-github-bot
authored andcommitted
Exit on errors in build_docs (#1204)
Summary: Currently, build_docs completes successfully even if commands fail, which could cause problematic website deployments and inaccurate signal from the test website deployment. Adds -e to exit script if any command fails. Pull Request resolved: #1204 Reviewed By: aobo-y Differential Revision: D51180604 Pulled By: vivekmig fbshipit-source-id: 20045f80bea06c7244dce63ba110583515f45731
1 parent ed85dcb commit ed3b1fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/build_docs.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -e
22

33
# run this script from the project root using `./scripts/build_docs.sh`
44

@@ -51,8 +51,6 @@ mkdir -p $WEBSITE_SPHINX_DIR
5151

5252
# move static files from /sphinx/build/html/_static/*:
5353
for sphinx_static_file in 'documentation_options.js' \
54-
'jquery.js' \
55-
'underscore.js' \
5654
'doctools.js' \
5755
'language_data.js' \
5856
'searchtools.js' \

0 commit comments

Comments
 (0)