[readme] Auto install not exist version in zsh .nvmrc script
Fixes #1272.
parent
4b4e71f05c
commit
e47b313b85
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue