Skip to content

Commit cc9572b

Browse files
committed
modeline2edid: don't ignore validation errors
1 parent 9430c12 commit cc9572b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modeline2edid

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ if [[ -z "$f" || "$f" == "-h" ]]; then
121121
fi
122122

123123
echo "Searching for modelines in '$f'"
124+
retcode=0
124125
while read; do
125126
# trim
126127
REPLY=($=REPLY)
127128
[[ -n "$REPLY" ]] || continue
128-
template-S ${(@)REPLY} || :
129+
if ! template-S ${(@)REPLY} ; then
130+
retcode=1
131+
fi
129132
done < $f
133+
exit $retcode

0 commit comments

Comments
 (0)