Permalink
Browse files

Close #19 new url scheme for 0.5

  • Loading branch information...
isaacs committed Jul 15, 2011
1 parent 81d0f76 commit 923c16f0a41ad7e8cb3b6717b92e4c8c94e8d016
Showing with 8 additions and 2 deletions.
  1. +8 −2 nave.sh
View
10 nave.sh
@@ -122,13 +122,19 @@ nave_fetch () {
local src="$NAVE_SRC/$version"
remove_dir "$src"
ensure_dir "$src"
+
+ # fixme: use array here.
local url="http://nodejs.org/dist/node-v$version.tar.gz"
- local url2="http://nodejs.org/dist/node-$version.tar.gz"
+ local url2="http://nodejs.org/dist/v$version/node-v$version.tar.gz"
+ local url3="http://nodejs.org/dist/node-$version.tar.gz"
curl -# -L "$url" \
| $tar xzf - -C "$src" --strip-components=1 \
|| curl -# -L "$url2" \
| $tar xzf - -C "$src" --strip-components=1 \
- || fail "Couldn't fetch $version"
+ || curl -# -L "$url3" \
+ | $tar xzf - -C "$src" --strip-components=1 \
+ || fail "Couldn't fetch $version"
+
return 0
}

0 comments on commit 923c16f

Please sign in to comment.