Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Download correct binary for windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
qhadron committed Oct 22, 2017
1 parent 2193220 commit 3874a88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3874a88

Please sign in to comment.