Permalink
Browse files

ls-remote using nodejs.org/dist

  • Loading branch information...
1 parent dbb65ad commit b6e64f4e6feb3a7e5189b0831f417b440eddffe3 @tj tj committed Aug 5, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 nave.sh
View
10 nave.sh
@@ -90,11 +90,11 @@ fail () {
}
nave_versions() {
- curl http://github.com/api/v2/yaml/repos/show/ry/node/tags \
- 2> /dev/null \
- | tail -n +3 \
- | egrep v \
- | cut -d ':' -f 1 \
+ curl -s http://nodejs.org/dist/ \
+ | egrep -o '"node-v[^"]*\.tar\.gz' \
+ | cut -d '"' -f 2 \
+ | sed 's/node-v//' \
+ | sed 's/\.tar\.gz//' \
| sort -r
}

0 comments on commit b6e64f4

Please sign in to comment.