Skip to content

Commit b715c58

Browse files
michaelfigerights
authored andcommitted
fix(agoric-cli); be sure to await rmVerbose()
1 parent 8a33699 commit b715c58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/agoric-cli/src/start.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
184184

185185
await null;
186186
if (popts.reset) {
187-
rmVerbose(serverDir);
187+
await rmVerbose(serverDir);
188188
}
189189

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

275275
const serverDir = `${SERVERS_ROOT_DIR}/${profileName}-${portNum}`;
276276
if (popts.reset) {
277-
rmVerbose(serverDir);
277+
await rmVerbose(serverDir);
278278
}
279279

280280
let chainSpawn;
@@ -481,7 +481,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
481481
}
482482

483483
if (popts.reset) {
484-
rmVerbose(serverDir);
484+
await rmVerbose(serverDir);
485485
}
486486

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

706706
if (popts.reset) {
707-
rmVerbose(serverDir);
707+
await rmVerbose(serverDir);
708708
}
709709

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

732732
await null;
733733
if (popts.reset) {
734-
rmVerbose(serverDir);
734+
await rmVerbose(serverDir);
735735
}
736736

737737
const setupRun = (...bonusArgs) =>

0 commit comments

Comments
 (0)