only assume ~/.nvm is a git repo if we clone it

This commit is contained in:
Mike Morris
2015-08-28 16:40:31 -04:00
parent 80532f1378
commit 82bc4ef8eb

View File

@@ -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