mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 06:11:51 +00:00
[Docs] fix fish load_nvm variable interpolations
This commit is contained in:
parent
d157cac689
commit
c367d7daa0
@ -655,7 +655,7 @@ function load_nvm --on-variable="PWD"
|
|||||||
set -l nvmrc_node_version (nvm version (cat $nvmrc_path))
|
set -l nvmrc_node_version (nvm version (cat $nvmrc_path))
|
||||||
if test "$nvmrc_node_version" = "N/A"
|
if test "$nvmrc_node_version" = "N/A"
|
||||||
nvm install (cat $nvmrc_path)
|
nvm install (cat $nvmrc_path)
|
||||||
else if test nvmrc_node_version != node_version
|
else if test "$nvmrc_node_version" != "$node_version"
|
||||||
nvm use $nvmrc_node_version
|
nvm use $nvmrc_node_version
|
||||||
end
|
end
|
||||||
else if test "$node_version" != "$default_node_version"
|
else if test "$node_version" != "$default_node_version"
|
||||||
|
Loading…
Reference in New Issue
Block a user