Skip to content

Commit

Permalink
fix(tasks): mkdir rejects on failed operations
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Sep 17, 2021
1 parent 2f71e30 commit 660bcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/filesystem/mkdir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function mkdir(

for (const dir of dirs) {
if (await isCancelled(ctx)) return;
opts.ensure ? fs.ensureDir(dir) : fs.mkdir(dir);
await (opts.ensure ? fs.ensureDir(dir) : fs.mkdir(dir));
}
}
);
Expand Down

0 comments on commit 660bcca

Please sign in to comment.