diff options
author | EuAndreh <eu@euandre.org> | 2020-10-11 04:30:55 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-10-11 04:30:55 -0300 |
commit | 5279b0afb32e0768e937819a69b9362657907b71 (patch) | |
tree | adcd49e38f51f8598b3f769a73108ad297e44c8e /scripts | |
parent | Remove </pre> leftover (diff) | |
download | euandre.org-5279b0afb32e0768e937819a69b9362657907b71.tar.gz euandre.org-5279b0afb32e0768e937819a69b9362657907b71.tar.xz |
Add pastebins to spellchecking list
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/assert-spelling.sh | 10 | ||||
-rw-r--r-- | scripts/spelling/international.txt | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/scripts/assert-spelling.sh b/scripts/assert-spelling.sh index caaecfa..e7bd3b8 100755 --- a/scripts/assert-spelling.sh +++ b/scripts/assert-spelling.sh @@ -8,7 +8,7 @@ export LANG=C.UTF-8 for DICT in scripts/spelling/*.txt; do diff <(sort "$DICT") "$DICT" || { echo "The $DICT dictionary is unsorted. To fix it, run:" >&2 - echo " LANG=C.UTF-8 sort docs/$DICT | sponge docs/$DICT" >&2 + echo " LANG=C.UTF-8 sort $DICT | sponge $DICT" >&2 exit 1 } done @@ -17,11 +17,9 @@ OUT="$(mktemp)" shopt -s globstar jekyll build for f in _site/**/*.html; do - if ! grep -E '^_site/pastebin' <(echo "$f") > /dev/null; then - if ! grep -E '^_site/vendor/' <(echo "$f") > /dev/null; then - l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" - hunspell -u3 -H -d "$l" -p <(cat scripts/spelling/international.txt "scripts/spelling/$l.txt") "$f" | tee -a "$OUT" - fi + if ! grep -E '^_site/vendor/' <(echo "$f") > /dev/null; then + l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" + hunspell -u3 -H -d "$l" -p <(cat scripts/spelling/international.txt "scripts/spelling/$l.txt") "$f" | tee -a "$OUT" fi done diff --git a/scripts/spelling/international.txt b/scripts/spelling/international.txt index 3536249..12126cc 100644 --- a/scripts/spelling/international.txt +++ b/scripts/spelling/international.txt @@ -58,6 +58,7 @@ POSIX Pastebin PouchDB README +RPN RSS Raku Reddit |