From fcae38850b3348179dd4b1bde1d76f1760bc6b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Mon, 15 Jul 2019 19:32:45 +0200 Subject: [PATCH] travis: do not ignore failure of all but last linted template --- common/travis/xlint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/travis/xlint.sh b/common/travis/xlint.sh index 56714bcd3a2..753d4a1fa51 100755 --- a/common/travis/xlint.sh +++ b/common/travis/xlint.sh @@ -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