From cc9572bb94cdde0ff6e930bfd9354a3c8badc168 Mon Sep 17 00:00:00 2001 From: Krzysztof Nazarewski Date: Wed, 15 Nov 2023 12:02:55 +0100 Subject: [PATCH] modeline2edid: don't ignore validation errors --- modeline2edid | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modeline2edid b/modeline2edid index da623e3..6770f54 100755 --- a/modeline2edid +++ b/modeline2edid @@ -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