Merge branch 'auto-detect-stable'

This commit is contained in:
Michał Koźmiński 2013-08-29 13:51:39 +02:00
parent b8ca75d15c
commit 084a244fc7
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -120,9 +120,9 @@ nvm_last_stable_version(){
VERSION=`curl http://nodejs.org/dist/latest/ | grep -o 'node-v.*\"' -m 1 | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*'`
if [ ! "$VERSION" ]; then
echo "N/A"
return
fi
else
echo "$VERSION"
fi
return
}