[Fix] nvm_ls_current: when node is present but crashes immediately, echo "none"

This commit is contained in:
Jordan Harband 2023-04-28 10:55:03 -07:00
parent d1a22a63bd
commit a07cd41af1
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56

2
nvm.sh
View File

@ -1130,7 +1130,7 @@ nvm_ls_current() {
if [ "${VERSION}" = "v0.6.21-pre" ]; then
nvm_echo 'v0.6.21'
else
nvm_echo "${VERSION}"
nvm_echo "${VERSION:-none}"
fi
else
nvm_echo 'system'