fixed update script
This commit is contained in:
parent
2f950e2191
commit
f5a2863812
@ -6,10 +6,12 @@ dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
|
|
||||||
cd "${dir}"
|
cd "${dir}"
|
||||||
|
|
||||||
|
node=/home/tmont/.nvm/versions/node/v12.16.2/bin/node
|
||||||
|
PATH="$PATH:$(dirname "${node}")"
|
||||||
|
|
||||||
if ! which node > /dev/null; then
|
if ! which node > /dev/null; then
|
||||||
#. /home/tmont/.nvm/nvm.sh
|
echo "node not available"
|
||||||
nvm use
|
exit 1
|
||||||
yarn install --production --non-interactive --pure-lockfile
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "./COVID-19" ]]; then
|
if [[ ! -d "./COVID-19" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user