From 1a19893f10153a1bec86305d3e2defd9c1276e89 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Sat, 4 Mar 2023 07:59:28 +0900 Subject: [PATCH] =?UTF-8?q?mecab-ipadic-neologd=E3=81=AE=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 0818d11..03eb494 100755 --- a/start.sh +++ b/start.sh @@ -1,8 +1,15 @@ #!/usr/bin/env bash -if (grep keywordEnabled config.json | grep -q true) && (! which mecab); then - echo "You must install MeCab if keywordEnabled is true." - exit 1 +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