Fix: Pass lexicon.txt as a parameter (#208)

* Fix: pass lexicon.txt as a parameter

* Fix lexicon location
This commit is contained in:
alfred gedeon 2020-10-23 11:33:41 -07:00 committed by GitHub
parent db62e30bce
commit f376c3bd71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ jobs:
PATH=$PATH:main/tools/spell PATH=$PATH:main/tools/spell
# Make sure that the portable directory is not included in the spellcheck. # Make sure that the portable directory is not included in the spellcheck.
sed -i 's/find $DIRNAME/find $DIRNAME -not -path '*portable*'/g' main/tools/spell/find-unknown-comment-words sed -i 's/find $DIRNAME/find $DIRNAME -not -path '*portable*'/g' main/tools/spell/find-unknown-comment-words
find-unknown-comment-words --directory kernel/ find-unknown-comment-words --directory kernel/ --lexicon ./kernel/.github/lexicon.txt
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
exit 0 exit 0
else else