mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
[readme] Auto install not exist version in zsh .nvmrc script
Fixes #1272.
This commit is contained in:
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
Block a user