ai/start.sh
Masaya Suzuki 180d93e618
Revert "if文修正"
This reverts commit 38fc0c54dd.
2023-03-04 07:56:16 +09:00

8 lines
278 B
Bash
Executable file

#!/usr/bin/env bash
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
node ./built