Add validate-feed helper script
This commit is contained in:
parent
939cd9ea5d
commit
dce67ea9e3
3 changed files with 80 additions and 0 deletions
11
scripts/validate-feed
Executable file
11
scripts/validate-feed
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
feedvalidator_dir="${FEEDVALIDATOR_DIR:-$HOME/src/github.com/w3c/feedvalidator}"
|
||||
pager="${PAGER:-less}"
|
||||
|
||||
feed_path="$(realpath "$1")"
|
||||
shift
|
||||
|
||||
cd "$feedvalidator_dir"
|
||||
uv run validate_feed.py "$feed_path" "$@" | "$pager"
|
||||
Loading…
Add table
Add a link
Reference in a new issue