mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Trivial style fix
This commit is contained in:
parent
d1711699d4
commit
c0f7318090
1 changed files with 5 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# filters the Nu HTML Validator's JSON output. Operates on stdin.
|
# filters the Nu HTML Validator's JSON output. Operates on stdin.
|
||||||
|
# no pipefail here since there are no pipes.
|
||||||
set -e -u
|
set -e -u
|
||||||
|
|
||||||
root_dir="$(dirname "$0")/.."
|
root_dir="$(dirname "$0")/.."
|
||||||
vnu_output="$(jaq --from-file "$root_dir/linter-configs/vnu_filter.jq")"
|
vnu_output="$(jaq --from-file "$root_dir/linter-configs/vnu_filter.jq")"
|
||||||
if [ "$vnu_output" = '' ]; then
|
if [ "$vnu_output" = '' ]; then
|
||||||
echo "All markup is valid"
|
echo "All markup is valid"
|
||||||
else
|
exit 0
|
||||||
echo "Markup errors found!" 1>&2
|
|
||||||
echo "$vnu_output"
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
echo "Markup errors found!" 1>&2
|
||||||
|
echo "$vnu_output"
|
||||||
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue