Merge branch 'auto-detect-stable'
This commit is contained in:
parent
b8ca75d15c
commit
084a244fc7
4
nvm.sh
4
nvm.sh
|
|
@ -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]*'`
|
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
|
if [ ! "$VERSION" ]; then
|
||||||
echo "N/A"
|
echo "N/A"
|
||||||
return
|
else
|
||||||
|
echo "$VERSION"
|
||||||
fi
|
fi
|
||||||
echo "$VERSION"
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue