Fix(nvm): Use 'nvm version' instead of unresolved variable

This commit is contained in:
Kiran Koirala 2024-05-10 12:43:11 +05:45
commit b6fdb00e67
No known key found for this signature in database

View file

@ -54,7 +54,7 @@ function _omz_setup_autoload {
if [[ "$nvmrc_node_version" = "N/A" ]]; then
nvm install
elif [[ "$nvmrc_node_version" != "$node_version" ]]; then
elif [[ "$nvmrc_node_version" != "$(nvm version)" ]]; then
nvm use $nvm_silent
fi
elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then