Some updates for sanity checks
This commit is contained in:
parent
c988f725fb
commit
017d13681e
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Enforce each of the lines
|
||||
linenum=0
|
||||
for line in compile install clean uninstall test checkperm diff reverse; do
|
||||
|
||||
newlinenum="$(grep -nE "^$line:" "Makefile" | cut -f 1 -d ':')"
|
||||
|
@ -39,7 +39,8 @@ for file in $files; do
|
||||
done
|
||||
|
||||
# Case 3: Spelling errors are present
|
||||
spellerrors="$(cat "$file" | aspell -p <(echo personal_ws-1.1 en 0; cat ~/.vim/spell/en.utf-8.add) list)"
|
||||
# aspell --lang=en create master $HOME/.aspell.en.pws < $HOME/.vim/spell/en.utf-8.add
|
||||
spellerrors="$(cat "$file" | aspell -p <(echo personal_ws-1.1 en 0; cat $HOME/.vim/spell/en.utf-8.add) list)"
|
||||
if [ `echo "$spellerrors" | wc -l` -ne 1 ]; then
|
||||
echo "$file" has spelling errors.
|
||||
echo "$spellerrors"
|
||||
|
Loading…
Reference in New Issue
Block a user