mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge 0f05655ee6
into 6b932e59c3
This commit is contained in:
commit
a3b06189f0
3
nvm.sh
3
nvm.sh
@ -321,13 +321,14 @@ nvm()
|
||||
fi
|
||||
else
|
||||
echo "nvm: install $VERSION failed!"
|
||||
return 1
|
||||
fi
|
||||
;;
|
||||
"uninstall" )
|
||||
[ $# -ne 2 ] && nvm help && return
|
||||
if [[ $2 == `nvm_version` ]]; then
|
||||
echo "nvm: Cannot uninstall currently-active node version, $2."
|
||||
return
|
||||
return 1
|
||||
fi
|
||||
VERSION=`nvm_version $2`
|
||||
if [ ! -d $NVM_DIR/$VERSION ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user