Skip to content

Commit 8f3faf6

Browse files
Add 64 bit check for Alpine
1 parent 89d2d38 commit 8f3faf6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/LocalBinary.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ function LocalBinary(){
1818
this.windows = true;
1919
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe';
2020
} else {
21-
if(this.isAlpine()) {
22-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine';
23-
} else {
24-
if(this.is64bits)
25-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64';
21+
if(this.is64bits) {
22+
if(this.isAlpine())
23+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine';
2624
else
27-
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32';
25+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64';
26+
} else {
27+
return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32';
2828
}
2929
}
3030
};

test/local.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ describe('LocalBinary', function () {
354354
it('should return download path of alpine linux binary', function() {
355355
sandBox.stub(localBinary, 'hostOS', 'linux');
356356
localBinary.isAlpine = sandBox.stub(localBinary, 'isAlpine').returns(true);
357+
sandBox.stub(localBinary, 'is64bits', true);
357358
expect(localBinary.getDownloadPath()).to.equal('https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine');
358359
});
359360

0 commit comments

Comments
 (0)