fix && to exit subshell with -e on failure

This commit is contained in:
Mike Morris
2015-08-28 16:27:38 -04:00
parent ef6392234e
commit ca794eb56d
2 changed files with 16 additions and 5 deletions

View File

@@ -17,11 +17,16 @@ 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
source ~/.nvm/nvm.sh
mapbox_time $NODE_VERSION \
nvm install $NODE_VERSION
nvm alias default $NODE_VERSION
node --version