mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
keywordEnabled=trueでMeCabがインストールされていない場合は起動前に異常終了する
This commit is contained in:
parent
31abe7146e
commit
4bf2052a1a
2 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
"_v": "1.5.0",
|
"_v": "1.5.0",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./built",
|
"start": "./start.sh",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|
8
start.sh
Executable file
8
start.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if (! which mecab) && (grep keywordEnabled config.json | grep -q true); then
|
||||||
|
echo "You must install MeCab if keywordEnabled is true."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
node ./built
|
Loading…
Reference in a new issue