Commit b2f187f1 authored by Alan O'Cais's avatar Alan O'Cais

Ignore exit code in CI for command

parent f09500cd
......@@ -10,7 +10,9 @@ spelling:
orphans:
script:
- find ./ -name "*.rst"|xargs -i grep -H orphan {}
# Report all the orphans but ignore the exit code
- find ./ -name "*.rst"|xargs -i grep -H orphan {} || true
# Now handle the error code
- if [ $(find ./ -name "*.rst"|xargs -i grep -H orphan {}|wc -l) -gt "1" ]; then $(exit 1); else $(exit 0); fi
only:
- master
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment