This commit is contained in:
GitHub Merge Button 2012-02-04 23:11:47 -08:00
commit 4cbcd2588b

2
nvm.sh
View File

@ -38,7 +38,7 @@ nvm_version()
return
fi
if [ ! "$VERSION" ]; then
VERSION=`(cd $NVM_DIR; \ls -d v${PATTERN}* 2>/dev/null) | sort -t. -k 2,1n -k 2,2n -k 3,3n | tail -n1`
VERSION=`(cd $NVM_DIR; \ls -d v${PATTERN}* 2>/dev/null) | sort -t. -k 1,1 -k 2,2n -k 3,3n | tail -n1`
fi
if [ ! "$VERSION" ]; then
echo "N/A"