11 lines
237 B
Bash
Executable file
11 lines
237 B
Bash
Executable file
#!/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"
|