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
echo "Searching for modelines in '$f'"
retcode=0
while read; do
# trim
REPLY=($=REPLY)
[[ -n "$REPLY" ]] || continue
template-S ${(@)REPLY} || :
if ! template-S ${(@)REPLY} ; then
retcode=1
fi
done < $f
exit $retcode