mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
setup: retry postinstall commands 3 times
This commit is contained in:
@@ -153,7 +153,15 @@ async function bootstrapPackage(cwd, outputs) {
|
||||
postInstallCommands.push(`npm run postinstall `);
|
||||
|
||||
for (const cmd of postInstallCommands) {
|
||||
await execute(cmd, cwd, outputs);
|
||||
let retries = 3;
|
||||
while (retries > 0) {
|
||||
try {
|
||||
await execute(cmd, cwd, outputs);
|
||||
break;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user