diff --git a/lib/downloader.js b/lib/downloader.js index f8fafc4..47979f2 100644 --- a/lib/downloader.js +++ b/lib/downloader.js @@ -16,6 +16,9 @@ function download(url, callback) { var status = null; + // download the correct version of the binary based on the platform + url = exec(url); + request.get(url, { followRedirect: false }, function(err, res) { if (res.statusCode !== 302) { return callback(new Error('Did not get redirect for the latest version link. Status: ' + res.statusCode));