diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-28 16:10:07 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-28 16:10:07 -0400 |
commit | ef6392234ec4fa30d0cc89041ebc8d9470b1a35b (patch) | |
tree | efe6bb5138103b0f134e79b8d0406c07f4cdd41a /scripts | |
parent | 5d6db325dea3721dacc5c444d40eb52c71eed025 (diff) | |
download | qtlocation-mapboxgl-ef6392234ec4fa30d0cc89041ebc8d9470b1a35b.tar.gz |
conditional nvm install
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/node/install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/node/install.sh b/scripts/node/install.sh index 8a9bd70f29..b6196dda9d 100755 --- a/scripts/node/install.sh +++ b/scripts/node/install.sh @@ -13,8 +13,11 @@ if [ ${TRAVIS_OS_NAME} == "linux" ]; then mason install mesa 10.4.3 fi -git clone git@github.com:creationix/nvm.git ~/.nvm -pushd ~/.nvm && git checkout `git describe --abbrev=0 --tags` && popd +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 source ~/.nvm/nvm.sh mapbox_time $NODE_VERSION \ |