modeline2edid: don't ignore validation errors

This commit is contained in:
Krzysztof Nazarewski
2023-11-15 12:02:55 +01:00
parent 9430c121e0
commit cc9572bb94

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