mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:24:32 -06: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:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user