7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/scripts/check-spelling.sh

15 lines
312 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -eu
if [ -d ./public ]; then
find ./public -name "*.html" -exec sed -e "s/<[^>]*>/ /g" {} + > plaintext.txt
if [ -f plaintext.txt ]; then
aspell --lang=nl check plaintext.txt
fi
else
echo "Run from root directory of website project. Something like ./scripts/$0"
fi
# EOF