[Doc] Fix manual install & upgrade guide, fix #1772

Peter Dave Hello 2018-04-12 23:58:30 +08:00 committed by Jordan Harband
parent b15709e637
commit 8ff437ae51
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ For a fully manual install, create a folder somewhere in your filesystem with th
export NVM_DIR="$HOME/.nvm" && ( export NVM_DIR="$HOME/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR" git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR" cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin` git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh" ) && \. "$NVM_DIR/nvm.sh"
``` ```
@ -174,7 +174,7 @@ For manual upgrade with `git` (requires git v1.7.10+):
( (
cd "$NVM_DIR" cd "$NVM_DIR"
git fetch origin git fetch origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin` git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh" ) && \. "$NVM_DIR/nvm.sh"
``` ```