mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
try to get xmllint to print diagnostics
This commit is contained in:
parent
59d6de6a92
commit
8971d74dac
1 changed files with 10 additions and 3 deletions
|
@ -25,12 +25,19 @@ cleanup() {
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
run_tidy() {
|
# run_tidy() {
|
||||||
tidy -asxhtml -config linter-configs/tidy.conf 2>/dev/null || true
|
# tidy -asxhtml -config linter-configs/tidy.conf 2>/dev/null || true
|
||||||
|
# }
|
||||||
|
|
||||||
|
run_xmllint() {
|
||||||
|
xmllint --format --encode UTF-8 --noent - || {
|
||||||
|
echo "$html_file"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# delete the stylesheet from the html file; we'll re-insert it later.
|
# delete the stylesheet from the html file; we'll re-insert it later.
|
||||||
sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | tail -n +2 >"$tmp_file"
|
sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
||||||
{
|
{
|
||||||
head -n7 "$tmp_file"
|
head -n7 "$tmp_file"
|
||||||
cat "${OUTPUT_DIR:?}/tmp.css"
|
cat "${OUTPUT_DIR:?}/tmp.css"
|
||||||
|
|
Loading…
Reference in a new issue