mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-05 01:12:11 +00:00
14 lines
319 B
Bash
14 lines
319 B
Bash
|
#!/bin/sh
|
||
|
# filters the Nu HTML Validator's JSON output. Operates on stdin.
|
||
|
set -e -u
|
||
|
|
||
|
root_dir="$(dirname "$0")/.."
|
||
|
vnu_output="$(jq --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
|
||
|
fi
|