From 8ff437ae5190f968f2d134c9c2f0113c63abc5cd Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 12 Apr 2018 23:58:30 +0800 Subject: [PATCH] [Doc] Fix manual install & upgrade guide, fix #1772 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c21bf30..94a0f24 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ For a fully manual install, create a folder somewhere in your filesystem with th export NVM_DIR="$HOME/.nvm" && ( git clone https://github.com/creationix/nvm.git "$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" ``` @@ -174,7 +174,7 @@ For manual upgrade with `git` (requires git v1.7.10+): ( cd "$NVM_DIR" 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" ```