Skip to content

Commit c8c92c5

Browse files
authored
fix(utils): fix check-availability script (#3158)
1 parent d9890f1 commit c8c92c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/check_availability.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ const browserFetcher = require('../lib/install/browserFetcher.js');
2020
const https = require('https');
2121
const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64'];
2222

23-
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => platform === 'mac' ? 'mac10.15' : platform);
23+
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => {
24+
if (platform === 'mac')
25+
return 'mac10.15';
26+
if (platform === 'linux')
27+
return 'ubuntu18.04';
28+
return platform;
29+
});
2430

2531
const colors = {
2632
reset: '\x1b[0m',

0 commit comments

Comments
 (0)