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

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
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

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