From 9c5cb92df21bf0a1746d76f519d6e3fa6f173280 Mon Sep 17 00:00:00 2001 From: nalbam Date: Mon, 16 Oct 2023 13:50:57 +0900 Subject: [PATCH] add install nodejs --- run.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 2e79bed..6a2c997 100755 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ SHELL_DIR=$(dirname $0) -CMD=${1} +CMD=$1 command -v tput >/dev/null || TPUT=false @@ -109,12 +109,22 @@ _start() { } _init() { + command -v node >/dev/null || NODEJS="false" + if [ "${NODEJS}" == "false" ]; then + sudo curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + sudo apt install -y nodejs + fi + pushd ${SHELL_DIR} git pull npm run build popd } +_hangul() { + sudo apt install -y ibus ibus-hangul fonts-unfonts-core +} + _log() { tail -n 500 -f ${SHELL_DIR}/nohup.out } @@ -141,6 +151,9 @@ stop) log) _log ;; +hangul | korean) + _hangul + ;; *) _usage ;;