nvm-cn/nvm-update.sh
2022-11-15 11:12:56 +08:00

7 lines
196 B
Bash
Executable File

(
cd "$NVM_DIR"
git fetch --tags origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"
echo "=> 更新完成"