Skip to content

Commit 476a016

Browse files
authored
Merge pull request #29 from nazarewk/master
stop ignoring validation errors
2 parents 9430c12 + cc9572b commit 476a016

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)