Permalink
Browse files

Recognise all even minor versions as stable

The old pattern for determining stable versions only matches if the 2nd
part is exactly two, four, six or eight. Change it to be ready for a
possible 1.0 or 0.10 stable version in the future.
  • Loading branch information...
1 parent 96227bd commit a17416af23f2621ad8cbb75c31b94bd8f8e74b05 @welwood08 welwood08 committed with Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nave.sh
View
@@ -376,7 +376,7 @@ nave_latest () {
nave_stable () {
curl -s http://nodejs.org/dist/ \
- | egrep -o '[0-9]+\.[2468]\.[0-9]+' \
+ | egrep -o '[0-9]+\.[0-9]*[02468]\.[0-9]+' \
| sort -u -k 1,1n -k 2,2n -k 3,3n -t . \
| tail -n1
}

0 comments on commit a17416a

Please sign in to comment.