Add special handling for node v0.6.21-pre

This commit is contained in:
Jordan Harband
2014-08-26 23:53:17 -07:00
parent fd9e01b7e6
commit 5048a78376
2 changed files with 11 additions and 1 deletions

8
nvm.sh
View File

@@ -205,7 +205,13 @@ nvm_ls_current() {
if [ $? -ne 0 ]; then
echo 'none'
elif nvm_tree_contains_path "$NVM_DIR" "$NODE_PATH"; then
echo `node -v 2>/dev/null`
local VERSION
VERSION=`node -v 2>/dev/null`
if [ "$VERSION" = "v0.6.21-pre" ]; then
echo "v0.6.21"
else
echo "$VERSION"
fi
else
echo 'system'
fi