From ee18567f29bee5ada7905417246dd40b1fef5606 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 30 Nov 2019 23:45:20 -0300 Subject: check-spelling.sh: Print only unique entries of unkown words --- spelling/check-spelling.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spelling') diff --git a/spelling/check-spelling.sh b/spelling/check-spelling.sh index b3bb15f..5f7b450 100755 --- a/spelling/check-spelling.sh +++ b/spelling/check-spelling.sh @@ -29,7 +29,7 @@ find "${HTML_DIR}" -type f -name '*.html' -print0 | xargs -0 -I{} bash -c "check if [[ -s spelling.txt ]]; then printf "\nvvv Mispelled words detected by hunspell.\n\n" - cat spelling.txt + sort < spelling.txt | uniq printf "\n^^^\n" exit 1 else -- cgit v1.2.3