exit with an error if zptlint fails.

svn path=/plone.app.discussion/trunk/; revision=39312
This commit is contained in:
Timo Stollenwerk 2010-08-28 19:12:31 +00:00
parent 0ea94c56ff
commit a1e81d4eaf
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ input = inline:
find plone/app/discussion -regex ".*\.[c|z]?pt" | xargs bin/zptlint > zptlint.log
if [ -s zptlint.log ]; then
echo "Errors were found, see zptlint.log for details"
exit 1;
else
echo "No errors found"
rm zptlint.log