From c0f7318090a5c1b7700cabae5a0248c0b1c605e5 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 25 Nov 2023 13:41:35 -0800 Subject: [PATCH] Trivial style fix --- scripts/filter-vnu.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/filter-vnu.sh b/scripts/filter-vnu.sh index 53ab989..f7a873d 100644 --- a/scripts/filter-vnu.sh +++ b/scripts/filter-vnu.sh @@ -1,13 +1,14 @@ #!/bin/sh # filters the Nu HTML Validator's JSON output. Operates on stdin. +# no pipefail here since there are no pipes. set -e -u root_dir="$(dirname "$0")/.." vnu_output="$(jaq --from-file "$root_dir/linter-configs/vnu_filter.jq")" if [ "$vnu_output" = '' ]; then echo "All markup is valid" -else - echo "Markup errors found!" 1>&2 - echo "$vnu_output" - exit 1 + exit 0 fi +echo "Markup errors found!" 1>&2 +echo "$vnu_output" +exit 1