mecab-ipadic-neologdのチェック追加

This commit is contained in:
Masaya Suzuki 2023-03-04 07:53:14 +09:00
parent 8f5e353b20
commit 49d0929c5a
No known key found for this signature in database

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
if (grep keywordEnabled config.json | grep -q true) && (! which mecab); then
echo "You must install MeCab if keywordEnabled is true."
if (grep keywordEnabled config.json | grep -q true) && (! which mecab) && [ -e '/usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd/' ]; then
echo "You must install MeCab and mecab-ipadic-neologd if keywordEnabled is true."
exit 1
fi