mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
15 lines
369 B
Bash
Executable file
15 lines
369 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if grep keywordEnabled config.json | grep -q true; then
|
|
if ! which mecab; then
|
|
echo "You must install MeCab if keywordEnabled is true."
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -e '/usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd/' ]; then
|
|
echo "You must install mecab-ipadic-neologd if keywordEnabled is true."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
node ./built
|