From 10dc399d51e81ff03ee2fa2ae79585b51fc7c386 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 23 Jan 2021 20:06:20 -0300 Subject: assert-spelling.sh: Exclude TODOs.html from spellchecking --- scripts/assert-spelling.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/assert-spelling.sh b/scripts/assert-spelling.sh index 37cec6e..401a852 100755 --- a/scripts/assert-spelling.sh +++ b/scripts/assert-spelling.sh @@ -15,7 +15,7 @@ OUT="$(mktemp)" jekyll build --future --trace # shellcheck disable=2044 for f in $(find _site -type f -name '*.html'); do - if ! echo "$f" | grep -E '^_site/vendor/' > /dev/null; then + if ! echo "$f" | grep -qE '(/vendor/|TODOs.html)'; then l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" CURR_DICT="$(mktemp)" cat scripts/spelling/international.txt "scripts/spelling/$l.txt" > "$CURR_DICT" -- cgit v1.2.3