Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

setup: fix infinite loop in postinstall

Abdullah Attaf9f0a866bda0
diff --git a/scripts/bootstrap.mjs b/scripts/bootstrap.mjs
index 7e3246f3d..4571157d2 100644
--- a/scripts/bootstrap.mjs
+++ b/scripts/bootstrap.mjs
@@ -154,7 +154,7 @@ async function bootstrapPackage(cwd, outputs) {
for (const cmd of postInstallCommands) {
let retries = 3;
- while (retries > 0) {
+ while (--retries > 0) {
try {
await execute(cmd, cwd, outputs);
break;