Framework: chained commands need hard exit on error

This commit is contained in:
Franco Fichtner 2020-02-12 16:19:14 +01:00
parent 40448f8b62
commit 74449dba70

View file

@ -276,7 +276,7 @@ lint-shell:
if [ "$$(head $${FILE} | grep -c '^#!\/bin\/sh$$')" == "0" ]; then \
echo "Missing shebang in $${FILE}"; exit 1; \
fi; \
sh -n $${FILE}; \
sh -n $${FILE} || exit 1; \
done
lint-xml: