diff --git a/scripts/node/install.sh b/scripts/node/install.sh index 6d6273599..26bf98002 100755 --- a/scripts/node/install.sh +++ b/scripts/node/install.sh @@ -15,12 +15,12 @@ fi if [ ! -d ~/.nvm ]; then git clone https://github.com/creationix/nvm.git ~/.nvm -fi -pushd ~/.nvm -git fetch -git checkout `git describe --abbrev=0 --tags` -popd + pushd ~/.nvm + git fetch + git checkout `git describe --abbrev=0 --tags` + popd +fi source ~/.nvm/nvm.sh