download latest version

This commit is contained in:
Craig Condon
2013-10-14 10:29:35 -07:00
parent 12a7069a32
commit a9a97fefe1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ exports.compile = function(args, next) {
function downloadNode(version, temp, next) {
var tmpPath = path.join(temp, "node-v" + version + ".tar.gz"),
var tmpPath = path.join(temp, "node-" + version + ".tar.gz"),
srcDr = tmpPath.replace(/\.tar.gz$/, "");
try {
@@ -119,7 +119,7 @@ function downloadNode(version, temp, next) {
console.log("downloading node %s", version);
var output = fs.createWriteStream(tmpPath, { "flags": "w+" }),
req = request("http://nodejs.org/dist/v" + version + "/node-v" + version + ".tar.gz").pipe(output);
req = request("http://nodejs.org/dist/node-" + version + ".tar.gz").pipe(output);
output.on("close", this);
},