Created
August 30, 2012 10:54
-
-
Save thomasfr/3526258 to your computer and use it in GitHub Desktop.
Get latest stable and latest dev version Copied from https://github.com/isaacs/nave/blob/master/nave.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nave_latest () { | |
curl -s http://nodejs.org/dist/ \ | |
| egrep -o '[0-9]+\.[0-9]+\.[0-9]+' \ | |
| sort -u -k 1,1n -k 2,2n -k 3,3n -t . \ | |
| tail -n1 | |
} | |
nave_stable () { | |
curl -s http://nodejs.org/dist/ \ | |
| egrep -o '[0-9]+\.[0-9]*[02468]\.[0-9]+' \ | |
| sort -u -k 1,1n -k 2,2n -k 3,3n -t . \ | |
| tail -n1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment