fix(install): follow-up to 5b1aef4c20
This commit is contained in:
parent
a4151c9bc2
commit
92bd854d8f
|
|
@ -82,7 +82,7 @@ async function downloadBrowser(browser, playwright) {
|
||||||
logPolitely(`${browser} downloaded to ${revisionInfo.folderPath}`);
|
logPolitely(`${browser} downloaded to ${revisionInfo.folderPath}`);
|
||||||
const localRevisions = await fetcher.localRevisions();
|
const localRevisions = await fetcher.localRevisions();
|
||||||
// Remove previous revisions.
|
// Remove previous revisions.
|
||||||
const cleanupOldVersions = localRevisions.filter(revision => revision !== revisionInfo.revision).map(revision => browserFetcher.remove(revision));
|
const cleanupOldVersions = localRevisions.filter(revision => revision !== revisionInfo.revision).map(revision => fetcher.remove(revision));
|
||||||
await Promise.all([...cleanupOldVersions]);
|
await Promise.all([...cleanupOldVersions]);
|
||||||
return revisionInfo;
|
return revisionInfo;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue