Skip to content

Commit

Permalink
Merge pull request #20 from nalbam/main
Browse files Browse the repository at this point in the history
add install nodejs
  • Loading branch information
nalbam authored Oct 16, 2023
2 parents d0f46d2 + 9c5cb92 commit f45174c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SHELL_DIR=$(dirname $0)

CMD=${1}
CMD=$1

command -v tput >/dev/null || TPUT=false

Expand Down Expand Up @@ -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
}
Expand All @@ -141,6 +151,9 @@ stop)
log)
_log
;;
hangul | korean)
_hangul
;;
*)
_usage
;;
Expand Down

0 comments on commit f45174c

Please sign in to comment.