From 017d13681eedd2a3e84bac872cccc1544af6af6a Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Sat, 21 Oct 2023 20:40:03 -0500 Subject: [PATCH] Some updates for sanity checks --- Hooks/scripts.d/check-AniNIX-Makefile | 1 + Hooks/scripts.d/check-AniNIX-READMEs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Hooks/scripts.d/check-AniNIX-Makefile b/Hooks/scripts.d/check-AniNIX-Makefile index d4be397..380622c 100755 --- a/Hooks/scripts.d/check-AniNIX-Makefile +++ b/Hooks/scripts.d/check-AniNIX-Makefile @@ -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 ':')" diff --git a/Hooks/scripts.d/check-AniNIX-READMEs b/Hooks/scripts.d/check-AniNIX-READMEs index 61248af..160b2d7 100755 --- a/Hooks/scripts.d/check-AniNIX-READMEs +++ b/Hooks/scripts.d/check-AniNIX-READMEs @@ -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"