Skip to content

Commit

Permalink
Attempt to fix tools/run_doxygen.sh for travis-ci (part 3)
Browse files Browse the repository at this point in the history
- previous commit 6f6a058 didn't work

- after installing and running travis locally, it seems that `grep` returns a non-zero exit status if nothing matches (i.e., we want nothing to match!)
--> use grep ... || echo "" instead
  • Loading branch information
dschlaep committed Jul 25, 2019
1 parent 405e93a commit c1bae18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/run_doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ fi


# Examine log file for remaining warnings/errors
warnings=$(grep -iE "warning|error" ${log} 2>&1)
warnings="$(grep -iE "warning|error" ${log} 2>&1 || echo "")"

if [ -n "${warnings}" ]; then
echo ${warnings}
exit 1
echo "${warnings}"
fi

0 comments on commit c1bae18

Please sign in to comment.