Merge pull request #60 from croach/master

Fix for Issue #59
master
Tim Caswell 2011-08-29 12:40:08 -07:00
commit d6ef0c47a5
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -56,7 +56,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 2,1n -k 2,2n -k 3,3n | tail -n1`
fi
if [ ! "$VERSION" ]; then
echo "N/A"