mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
Try telling aspell that the current dir is its home dir too
Idk. http://unix.stackexchange.com/questions/325869/aspell-how-to-ignore-words-permanently
This commit is contained in:
parent
438b081ae5
commit
4b75fda8be
@ -32,7 +32,7 @@ aspell --version
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
dict_filename=./dictionary.txt
|
||||
dict_filename=dictionary.txt
|
||||
markdown_sources=(./src/*.md)
|
||||
mode="check"
|
||||
|
||||
@ -58,8 +58,8 @@ elif [[ "$mode" == "list" ]]; then
|
||||
declare -i retval=0
|
||||
|
||||
for fname in "${markdown_sources[@]}"; do
|
||||
echo "command = aspell --ignore 3 --personal=\"$dict_filename\" \"$mode\" < \"$fname\""
|
||||
command=$(aspell --ignore 3 --personal="$dict_filename" "$mode" < "$fname")
|
||||
echo "command = aspell --home-dir=. --ignore 3 --personal=\"$dict_filename\" \"$mode\" < \"$fname\""
|
||||
command=$(aspell --home-dir=. --ignore 3 --personal="$dict_filename" "$mode" < "$fname")
|
||||
if [[ -n "$command" ]]; then
|
||||
for error in $command; do
|
||||
# TODO: Find more correct way to get line number
|
||||
|
Loading…
Reference in New Issue
Block a user