diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-28 16:40:31 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-28 16:40:31 -0400 |
commit | 82bc4ef8eb985a27d5b0928ccacbbbd321b25974 (patch) | |
tree | e5d44238c871b6fec5817bdb3541b6d49d83ac23 /scripts/node/install.sh | |
parent | 80532f1378ea23efbfbf43c97cc704d86728f9f4 (diff) | |
download | qtlocation-mapboxgl-82bc4ef8eb985a27d5b0928ccacbbbd321b25974.tar.gz |
only assume ~/.nvm is a git repo if we clone it
Diffstat (limited to 'scripts/node/install.sh')
-rwxr-xr-x | scripts/node/install.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/node/install.sh b/scripts/node/install.sh index 6d62735998..26bf980027 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 |