Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 11, 2024
1 parent 63791f9 commit e79ca20
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/tasks/src/localnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ const localnet = async (args: any) => {
console.table(zetaAddresses);

fs.writeFileSync(LOCALNET_PID_FILE, process.pid.toString(), "utf-8");

if (args.stopAfterInit) {
console.log(
ansis.green("Localnet successfully initialized. Stopping...")
);
cleanup();
process.exit(0);
}
} catch (error: any) {
console.error(ansis.red`Error initializing localnet: ${error}`);
cleanup();
Expand All @@ -138,6 +130,12 @@ const localnet = async (args: any) => {
console.log("Process exiting...");
});

if (args.stopAfterInit) {
console.log(ansis.green("Localnet successfully initialized. Stopping..."));
cleanup();
process.exit(0);
}

await new Promise(() => {});
};

Expand Down

0 comments on commit e79ca20

Please sign in to comment.