travis: do not ignore failure of all but last linted template

This commit is contained in:
Piotr Wójcik 2019-07-15 19:32:45 +02:00 committed by Enno Boland
parent 2fc54e0a21
commit fcae38850b

View File

@ -4,7 +4,9 @@
[ "$XLINT" ] || exit 0
awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates | while read -r t; do
EXITCODE=0
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
xlint "$t"
xlint "$t" || EXITCODE=$?
done
exit $EXITCODE