Skip to content

Commit

Permalink
fix(agoric-cli); be sure to await rmVerbose()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig authored and erights committed Jan 29, 2024
1 parent 8a33699 commit b715c58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/agoric-cli/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {

await null;
if (popts.reset) {
rmVerbose(serverDir);
await rmVerbose(serverDir);
}

if (!opts.dockerTag) {
Expand Down Expand Up @@ -274,7 +274,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {

const serverDir = `${SERVERS_ROOT_DIR}/${profileName}-${portNum}`;
if (popts.reset) {
rmVerbose(serverDir);
await rmVerbose(serverDir);
}

let chainSpawn;
Expand Down Expand Up @@ -481,7 +481,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
}

if (popts.reset) {
rmVerbose(serverDir);
await rmVerbose(serverDir);
}

let soloSpawn;
Expand Down Expand Up @@ -704,7 +704,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
const serverDir = `${SERVERS_ROOT_DIR}/${profileName}-${port}`;

if (popts.reset) {
rmVerbose(serverDir);
await rmVerbose(serverDir);
}

const setupRun = (...bonusArgs) =>
Expand All @@ -731,7 +731,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {

await null;
if (popts.reset) {
rmVerbose(serverDir);
await rmVerbose(serverDir);
}

const setupRun = (...bonusArgs) =>
Expand Down

0 comments on commit b715c58

Please sign in to comment.