Skip to content

Commit 0322e0a

Browse files
committed
chore: fix command retry script
1 parent ae11e3a commit 0322e0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/retry.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ const [command, ...args] = process.argv.slice(process.argv.indexOf("--") + 1);
1515
stdio: "inherit",
1616
cwd: path.join(__dirname, ".."),
1717
});
18-
break;
18+
return;
1919
} catch (e) {
2020
console.error("Command exited non-zero:", command, ...args);
2121
console.error(e);
2222
console.log(`Starting attempt: ${attempt}`);
2323
}
2424
}
25+
26+
process.exit(1);
2527
})();

0 commit comments

Comments
 (0)