From f5a2863812c6a92f00c077042920e21fd0eaf4be Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 28 Jun 2021 08:48:39 -0700 Subject: [PATCH] fixed update script --- update.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index 3dbbc1d..07d671f 100755 --- a/update.sh +++ b/update.sh @@ -6,10 +6,12 @@ dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "${dir}" +node=/home/tmont/.nvm/versions/node/v12.16.2/bin/node +PATH="$PATH:$(dirname "${node}")" + if ! which node > /dev/null; then - #. /home/tmont/.nvm/nvm.sh - nvm use - yarn install --production --non-interactive --pure-lockfile + echo "node not available" + exit 1 fi if [[ ! -d "./COVID-19" ]]; then