Merge pull request #29 from nazarewk/master

stop ignoring validation errors
This commit is contained in:
Trevor Joynson
2023-11-20 01:23:28 -08:00
committed by GitHub

View File

@@ -121,9 +121,13 @@ if [[ -z "$f" || "$f" == "-h" ]]; then
fi fi
echo "Searching for modelines in '$f'" echo "Searching for modelines in '$f'"
retcode=0
while read; do while read; do
# trim # trim
REPLY=($=REPLY) REPLY=($=REPLY)
[[ -n "$REPLY" ]] || continue [[ -n "$REPLY" ]] || continue
template-S ${(@)REPLY} || : if ! template-S ${(@)REPLY} ; then
retcode=1
fi
done < $f done < $f
exit $retcode