fix(utils): fix check-availability script (#3158)

This commit is contained in:
Andrey Lushnikov 2020-07-24 16:22:52 -07:00 committed by GitHub
parent d9890f1102
commit c8c92c509d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,13 @@ const browserFetcher = require('../lib/install/browserFetcher.js');
const https = require('https');
const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64'];
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => platform === 'mac' ? 'mac10.15' : platform);
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => {
if (platform === 'mac')
return 'mac10.15';
if (platform === 'linux')
return 'ubuntu18.04';
return platform;
});
const colors = {
reset: '\x1b[0m',