summaryrefslogtreecommitdiffhomepage
path: root/scripts/ci/pre-commit/sort-codespell-wordlist.sh
blob: e5250f0a9a955da0d1be522390014c7ae0001eef (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash

CODESPELL_WORDLIST="codespell.txt"
temp_file=$(mktemp)
sort <"${CODESPELL_WORDLIST}" | uniq >"${temp_file}"
cat "${temp_file}" >"${CODESPELL_WORDLIST}"
rm "${temp_file}"