[readme] Auto install not exist version in zsh .nvmrc script

Fixes #1272.
Peter Dave Hello 2016-11-14 19:44:55 +08:00 committed by Jordan Harband
parent 4b4e71f05c
commit e47b313b85
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ load-nvmrc() {
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then
nvm use
nvm install
fi
elif [ "$node_version" != "$(nvm version default)" ]; then
echo "Reverting to nvm default version"