aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-26 18:42:38 -0300
committerEuAndreh <eu@euandre.org>2021-06-26 18:42:38 -0300
commit06059161c3f234f7ba19dafecd082fff01fe26a7 (patch)
tree6507b712978190811bef98c7d3275e269b560abf /aux/workflow
parentaux/workflow/l10n.sh: Mark WARNING message with yellow color (diff)
downloadgit-permalink-06059161c3f234f7ba19dafecd082fff01fe26a7.tar.gz
git-permalink-06059161c3f234f7ba19dafecd082fff01fe26a7.tar.xz
aux/workflow/assert-spelling.sh: Get files as arguments instead of assuming they're under public/
Diffstat (limited to 'aux/workflow')
-rwxr-xr-xaux/workflow/assert-spelling.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/aux/workflow/assert-spelling.sh b/aux/workflow/assert-spelling.sh
index ff1df2a..7451abb 100755
--- a/aux/workflow/assert-spelling.sh
+++ b/aux/workflow/assert-spelling.sh
@@ -33,6 +33,8 @@ while getopts 'l:i' flag; do
;;
esac
done
+shift $((OPTIND -1))
+
if [ -z "${LANGS:-}" ]; then
echo 'Missing -l LANGS' >&2
exit 2
@@ -52,8 +54,7 @@ get_lang() {
}
ACC="$(mktemp)"
-# shellcheck disable=2044
-for f in $(find public -type f -name '*.html'); do
+for f in "$@"; do
l="$(get_lang "$f")"
CURR_DICT="$(mktemp)"
cat doc/spelling/international.txt "doc/spelling/$l.txt" | sort | uniq > "$CURR_DICT"