add missing fs ops
This commit is contained in:
parent
5ce5fc0e20
commit
3e283eb7d1
|
|
@ -170,6 +170,13 @@ async function downloadBrotli(title: string, browserDirectory: string, url: stri
|
|||
throw new Error(`Download failed: size mismatch, file size: ${downloadedBytes}, expected size: ${totalBytes} URL: ${url}`);
|
||||
|
||||
debugLogger.log('install', `-- download complete, size: ${downloadedBytes}`);
|
||||
|
||||
if (executablePath) {
|
||||
debugLogger.log('install', `fixing permissions at ${executablePath}`);
|
||||
await fs.promises.chmod(executablePath, 0o755);
|
||||
}
|
||||
await fs.promises.writeFile(browserDirectoryToMarkerFilePath(browserDirectory), '');
|
||||
|
||||
return { error: null };
|
||||
} catch (error) {
|
||||
debugLogger.log('install', `-- ${error.message}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue