diff --git a/.ci/test.sh b/.ci/test.sh index 0bf9b1e6901d..004c32c92d99 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -40,9 +40,9 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then pip install --user -r requirements.txt # check reStructuredText formatting cd $BUILD_DIRECTORY/python-package - rstcheck --report warning `find . -type f -name "*.rst"` || exit -1 + rstcheck --report warning $(find . -type f -name "*.rst") || exit -1 cd $BUILD_DIRECTORY/docs - rstcheck --report warning --ignore-directives=autoclass,autofunction,doxygenfile `find . -type f -name "*.rst"` || exit -1 + rstcheck --report warning --ignore-directives=autoclass,autofunction,doxygenfile $(find . -type f -name "*.rst") || exit -1 # build docs make html || exit -1 if [[ $TASK == "check-links" ]]; then