This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/scripts/check-spelling.sh

15 lines
312 B
Bash
Raw 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